New to Telerik UI for ASP.NET AJAX? Download free 30-day trial


The OnClientNodeDropped client-side event is called after node(s) are dropped.

The event handler receives parameters:

  1. The TreeView instance that fired the event.

  2. Event arguments with functions:

  • get_sourceNode() retrieves the node being dropped. When the RadTreeView MultipleSelect property is True, get_sourceNode() refers to the first node selected.

  • get_sourceNodes() retrieves an array of nodes being dropped if the RadTreeView MultipleSelect property is True.

  • get_domEvent() retrieves a DOM event object of the node dropping.

The example below displays information for the dropped source nodes.

<telerik:RadTreeView RenderMode="Lightweight" ID="RadTreeView1" 
function ClientNodeDropped(sender, eventArgs) {
    alert("The source node is: " + eventArgs.get_sourceNode().get_text() + "\n" +
    //if MultipleSelect = True
        "The number of source nodes: " + eventArgs.get_sourceNodes().length + "\n");

See Also

In this article