Edit this page


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:

  1. The TreeView instance that fired the event.

  2. 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.

<telerik:RadTreeView RenderMode="Lightweight" ID="RadTreeView1" runat="server" OnClientNodeClicked="ClientNodeClicked">
function ClientNodeClicked(sender, eventArgs) {
    var node = eventArgs.get_node();
    alert("You clicked " + node.get_text());

See Also

Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article