This is a migrated thread and some comments may be shown as answers.

Validation in Custom Control

0 Answers 51 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 16 Mar 2012, 07:41 PM
I have a RadComboBox inside of a custom control -- this custom control is part of a larger set of fields not inside of a form control.
If the ComboBox has not loaded and the user has clicked the 'Search' button I need the standard validation to work to display something like 'Must choose One'.

My fields work against a class called 'SearchCriteria' that implements INotifyPropertyChanged and IDataErrorInfo. If the user fills in a textbox with an invalid value I use the Context/Binding to display the standard red outline with red tooltip message.

I realize I could just disable the 'Button' until all controls have loaded however that is not the desired solution in this case ... plus it would be good to know how to do this just overall.

Any help greatly appreciated how this should be done.

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Sean
Top achievements
Rank 1
Share this question
or