You can use the AfterClientCheck client-side event to accomplish the task.
Example:
| ASPX |
Copy Code |
|
<script language=javascript> function AfterCheck(node) { if (node.Checked && node.Parent != null) { for (var i=0; i<node.Parent.Nodes.length; i++) { if (node.Parent.Nodes[i] != node) { node.Parent.Nodes[i].UnCheck(); } } } } </script> ... <rad:RadTreeView runat="server" CheckBoxes="True" AfterClientCheck="AfterCheck" /> |
 |
Note that this sample code makes sure only one checkbox per node child is selected - thus resembling radio-buttons. True radiobuttons will not be displayed. |