Validation in Custom Control

1 posts, 0 answers
  1. Sean
    Sean avatar
    51 posts
    Member since:
    May 2008

    Posted 16 Mar 2012 Link to this post

    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.
Back to Top