New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientNodeClicked
The OnClientNodeClicked client-side event occurs when the user clicks on a node, after the RadTreeView responds to the mouse click. When using keyboard navigation the event is fired after pressing Enter.
The event handler receives parameters:
-
The TreeView instance that fired the event.
-
Event arguments with function:
-
get_node() retrieves a reference to the clicked on node.
-
get_domEvent() retrieves a DOM event object of the node click.
The example below displays the text for the clicked node.
ASPNET
<telerik:RadTreeView RenderMode="Lightweight" ID="RadTreeView1" runat="server" OnClientNodeClicked="ClientNodeClicked">
</telerik:RadTreeView>