New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientNodeDropped
The OnClientNodeDropped client-side event is called after node(s) are dropped.
The event handler receives parameters:
-
The TreeView instance that fired the event.
-
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.
ASPNET
<telerik:RadTreeView RenderMode="Lightweight" ID="RadTreeView1"
runat="server"
EnableDragAndDrop="true"
MultipleSelect="true"
OnClientNodeDropped="ClientNodeDropped">
</telerik:RadTreeView>