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:
-
ExpandMode.ClientSide - the nodes are already added to the treeview when the page is displayed. This is the default ExpandMode.
-
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-SideLive QSF Example
-
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-SideLive QSF Example
 |
The NodeExpand server-side event accepts NodeEventsArgs of type RadTreeNodeEvents. The node that is being expanded is NodeEventsArgs.NodeClicked. |