This example demonstrates RadTreeView's validation support. By using a RequiredFieldValidator
control you can verify that your users have selected a tree node:
<telerik:RadTreeView runat="server" ID="RadTreeView1">
<Nodes>
<telerik:RadTreeNode Text="Node 1">
<Nodes>
<telerik:RadTreeNode Text="Node 1.1" />
<telerik:RadTreeNode Text="Node 1.2" />
</Nodes>
</telerik:RadTreeNode>
</Nodes>
</telerik:RadTreeNode>
<asp:RequiredFieldValidator runat="server"
ID="RequiredFieldValidator1"
ControlToValidate="RadTreeView1"
ErrorMessage="Please select a node"
/>
RadTreeView can also can trigger validation. You can use the
ValidationGroup
property to specify the validation group that should be triggered.