RadTreeView for ASP.NET

NodeExpand Send comments on this topic.
Telerik RadTreeView Server-Side > Server-Side Events > NodeExpand

Glossary Item Box

NodeExpand

You can load TreeNodes on demand - when clicking on the "+" icon next to the node. The NodeExpand event is fired when users click on the "+" icon. To fire the event you should set the ExpandMode of each TreeNode. There are three ExpandModes:
  1. ExpandMode.ClientSide - the nodes are already added to the treeview when the page is displayed. This is the default ExpandMode.
  2. ExpandMode.ServerSide - the nodes are being added upon clicking on the "+" icon. Tree-Nodes are added on the server-side and therefore a postback is required. For more details, please check the following articles:

    Load On Demand Server-Side
    Live QSF Example
  3. ExpandMode.ServerSideCallBack - the nodes are being added upon clicking on the "+" icon. Tree-Nodes are added on the client-side and therefore no postback is required. You should keep into account that nodes added on the client-side are not persisted on the server. Therefore, these nodes cannot take part in any server-side events. In other words you cannot access these nodes and their attributes on the server-side.
    For more details, please check the following articles:

    Load On Demand Client-Side
    Live QSF Example

The NodeExpand server-side event accepts NodeEventsArgs of type RadTreeNodeEvents. The node that is being expanded is NodeEventsArgs.NodeClicked.