This question is locked. New answers and comments are not allowed.
It appears that RadComboBox does not support ValidatesOnExceptions for the Text property. Here is what I am trying to use in my XAML.
I need to use the Text property since the IsEditable property is true. We need to allow users to enter a value or select from the list.
When a validation error is thrown it is not trapped and I get an unhandled System.ComponentModel.DataAnnotations.ValidationException (code is below)
Does the RadComboBox Text property support validation exceptions? The approach I am using works perfectly for the RadComboBox SelectedItem property.
Regards,
Andre
Text="{Binding InitialsText, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"I need to use the Text property since the IsEditable property is true. We need to allow users to enter a value or select from the list.
When a validation error is thrown it is not trapped and I get an unhandled System.ComponentModel.DataAnnotations.ValidationException (code is below)
/// <summary>/// text for the selected initials - required since field is editable/// </summary>[Required()] //TODO AEO CAUSES ERRORSpublic string InitialsText{ get { return initialsText; } set { SetProperty("InitialsText", ref initialsText, ref value); ValidationContext context = new ValidationContext(this, null, null); context.MemberName = "InitialsText"; System.ComponentModel.DataAnnotations.Validator.ValidateProperty(value, context); }}Does the RadComboBox Text property support validation exceptions? The approach I am using works perfectly for the RadComboBox SelectedItem property.
Regards,
Andre