First of all, I am using the Infragistics 11.1.20111.2042.
When i validate the controls on a form I change the appearance of the control on validation failure (background color, image and so on).
To do this I modify the ErrorAppearance of the ValidationSettings of each control (actually I am using a custom StyleResource but it's the same). The only control on which it seems the ErrorAppearance doesn't work is the UltraOptionSet, the control is not affected of the values I'm trying to set on it. There could be something different on this control regarding validation styling?
Thank you
Claudio Di Flumeri
Hello Claudio,
As the behavior of the ErrorAppearance property of the UltraOptionSet does not work properly we have decided to examine your issue further, so I’ve created case for you in our issue tracking system, its id is CAS-144421-T6Q4F6 . The next step will be for a developer to review my investigation and confirm my findings or to offer another fix, or other resolution and give explanation about this behavior. I will update you via the case as soon as I have more information for you.
You can view the status of all development issues connected to this case from the "Development Issues" tab, when viewing this case on the "My Support Requests" page of our website
Thank you for your collaboration
Hello,
Thank you for your reply.
I was wondering why the UltraOptionset control has a different behaviour regarding the ErrorAppearance property compared to the other controls. I know I can manage the ValidationError or Validating event of the Validator Control, and it's what I am doing right now setting the ErrorAppearance property for all the validated controls. Only with the OptionSet controls this doesn't work.
Sometimes it's useful validating an OptionSet, for example if you want the user specify a value and so the OptionSet starts blank (maybe you dont have a default one). In this case the "Field required" error is raised and you want to customize the appearance of the error.
For now I'll manage the particular case of the OptionSet checking the e.Control property in ValidationError/Validating event.
Regards
We have decided to examine your issue further. The next step will be for a developer to review my investigation and confirm my findings or to offer another fix, or other resolution.
Hello ,
Thank you for posting your issue in our forum.
Typical behavior for OptionSet is to select one of a set of options. If customer should not be allowed to select particular option of a set of options, then this option shouldn’t be part of this set of options (otherwise user will be confused why they cannot choose an option if it is available for them ). In the context of this postulate, validation of selected option of OptionSet makes no sense. However in some scenario like validating of answers of a question with predefined set of answers (let say like usage in the game “Who wants to be a Billionaire”), it makes sense. So in this case you could handle Validating event of UltraValidator in order to managed the appearance of the OptionSet, if invalid option was selected.
I’ve implemented this workaround for you, please see attached sample.
Please let me know if you have any further questions.