RadTreeView set ValidatesOnDataErrors

2 posts, 0 answers
  1. Naga
    Naga avatar
    6 posts
    Member since:
    Sep 2010

    Posted 28 Sep 2011 Link to this post

    We are using RadTreeView with checkboxes and I want to show user an Error message as Please select atleast one node. I m using following code however I m not able to get any error message. I have properly defined IDateError Info object.

    <telerik:RadTreeView Grid.Row="1" Name="TreeView" IsVirtualizing="True" IsOptionElementsEnabled="True" ItemsOptionListType="CheckList" ItemsSource="{Binding Children, ValidatesOnDataErrors=True}" ItemTemplate="{StaticResource FamilyTemplate}" />
    How should I set it?


  2. Petar Mladenov
    Petar Mladenov avatar
    3162 posts

    Posted 03 Oct 2011 Link to this post

    Hello Naga,

     We have previously created a feature request and you can vote for in order to increase its development priority (TreeView: Validation abilities based on INotifyDataErrorInfo interface like in input controls). However, you can use the MouseEnter event and show a MessageBox if the Tree's Items collection is empty. Please let us know if you need more info on this.

    Kind regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top