You can easily expand/collapse TreeNodes when you click on their text. To achieve the task, you should subscribe to the BeforeClientClick event and use the client-side Toggle() method that expands/collapse the nodes. An example is shown below:
Example:
| ASPX |
Copy Code |
|
... <rad:radtreeview runat="server" ID="RadTreeView1" BeforeClientClick="ToggleNode" ... />
<script language="javascript">
function ToggleNode(node) { node.Toggle(); }
</script> ... |
See Also