New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

NodeDrop

When a Node is dropped onto another Node, between other Nodes or onto an HTML element the NodeDrop event fires. The RadTreeNodeDragDropEventArgs provides properties for the source and destination Nodes:

  • SourceDragNode: The Node being dropped.

  • DestDragNode: The Node being dropped onto.

  • DraggedNodes: A collection of RadTreeNodes that are being dragged. This could be useful when MultipleSelect is True.

  • DropPosition: Indicates the relationship of the Nodes being dropped and will be a RadTreeViewDropPosition enumeration value Above, Below or Over.

  • HtmlElementID: The ID of the HTML element that the Node is being dropped onto.

See Drag and Drop Overview for more information.

C#
protected void RadTreeView1_NodeDrop(object sender, Telerik.Web.UI.RadTreeNodeDragDropEventArgs e)
{
    e.DestDragNode.Nodes.Add(e.SourceDragNode);
} 		

See Also

In this article
See Also
Not finding the help you need?
Contact Support