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

RadTreeView set ValidatesOnDataErrors

1 Answer 49 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Naga
Top achievements
Rank 1
Naga asked on 29 Sep 2011, 01:45 AM
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?


 

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 03 Oct 2011, 04:07 PM
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 >>

Tags
TreeView
Asked by
Naga
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or