RadTreeView for ASP.NET

Expanding/Collapsing TreeNodes upon clicking their text Send comments on this topic.
See Also
Example scenarios (How to) > Client -side > Expanding/Collapsing TreeNodes upon clicking their text

Glossary Item Box

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