New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

NodeCollapse

When the user clicks the minus button next to a Node that has child Nodes, the NodeCollapse event fires. Use the RadTreeNodeEventArgs.Node property to get or set the collapsed Node properties. The Node ExpandMode property must be set to ServerSide for this event to fire.

protected void RadTreeView1_NodeCollapse(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e)
{    
    e.Node.Text = "NodeCollapse fired for this node";
}
Protected Sub RadTreeView1_NodeCollapse(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs)
    e.Node.Text = "NodeCollapse fired for this node"
End Sub

Every collapse of a node causes a postback if the ExpandMode is set to ServerSide.

See Also

In this article