New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientNodeExpanded
The OnClientNodeExpanded client-side event occurs after a parent node expands to display child nodes.
Calling the client-side expand() or set_expanded(true) method does not fire OnClientNodeExpanding and OnClientNodeExpanded client-side events. More information is available here.
The event handler receives parameters:
-
The TreeView instance that fired the event.
-
Event arguments with functions:
-
get_node() retrieves a reference to the clicked on node.
-
get_domEvent() retrieves a DOM event object of the node expand.
The example below displays the text for the parent node and a count of child nodes.
ASPNET
<telerik:RadTreeView RenderMode="Lightweight" ID="RadTreeView1" runat="server"
OnClientNodeExpanded="ClientNodeExpanded">
</telerik:RadTreeView>