Validation not working

2 posts, 0 answers
  1. Sameer
    Sameer avatar
    22 posts
    Member since:
    Sep 2011

    Posted 29 Feb 2012 Link to this post

    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, 
    =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.
  2. Yana
    Yana avatar
    5030 posts

    Posted 06 Mar 2012 Link to this post

    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

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top