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

Validation not working

1 Answer 53 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Sameer
Top achievements
Rank 1
Sameer asked on 29 Feb 2012, 10:23 PM
Hi Team,

I'm struggling with RadCombobox validation.

In my Entity metadata file, I have decorated the property with Required annotation like this:
[Required(AllowEmptyStrings = false)]
public string PlanType { getset; }





In my Xaml, I have a Combobox like this

<telerik:RadComboBox x:Name="cbPlanType" DataContext="{Binding}" DisplayMemberPath="Name"
    EmptyText="&lt;plan type&gt;" 
    ItemsSource="{Binding PlanTypes}"     SelectedItem="{Binding Path=SelectedEntity.PlanType, Mode=TwoWay, ValidatesOnExceptions=True, 
                    NotifyOnValidationError
=True, UpdateSourceTrigger=PropertyChanged}"     SelectedValuePath="Value" />

It is displaying the PlanTypes in combobox pretty well.
When something is null from DB, the combobox displays the EmptyText value which is also fine.
However, if I don't select anything from the combobox, it doesn't show validation tooltip.

FYI- I'm using SL5 with latest Telerik control suite.

Thankyou for your help.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 06 Mar 2012, 10:21 AM
Hello Sameer,

Could you please replace RadComboBox with a regular Silverlight ComboBox and tell us whether the validation is fired in the described case? Thanks

Regards,
Yana
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ComboBox
Asked by
Sameer
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or