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

Provides data for the NodeDrop event of the RadTreeView control.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class RadTreeNodeDragDropEventArgs : EventArgs

Inheritance: objectEventArgsRadTreeNodeDragDropEventArgs

Inherited Members EventArgs.Emptyobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes a new instance of the RadTreeNodeDragDropEventArgs class.

C#
public RadTreeNodeDragDropEventArgs(IList<RadTreeNode> sourceNodes, RadTreeNode destinationNode, RadTreeViewDropPosition dropPosition)
Parameters:sourceNodesIList<RadTreeNode>

A list of RadTreeNode objects representing the source (dragged) nodes.

destinationNodeRadTreeNode

A RadTreeNode representing the destination node.

dropPositionRadTreeViewDropPosition

A RadTreeViewDropPosition value representing the drop position of the source node(s) with regards to the destination node.

Initializes a new instance of the RadTreeNodeDragDropEventArgs class.

C#
public RadTreeNodeDragDropEventArgs(IList<RadTreeNode> sourceNodes, string htmlElementId)
Parameters:sourceNodesIList<RadTreeNode>

A list of RadTreeNode objects representing the source (dragged) nodes.

htmlElementIdstring

A string representing the id of the HTML element on which the source nodes are dropped.

Properties

Gets the destination node.

C#
public RadTreeNode DestDragNode { get; }
Property Value:

A RadTreeNode object representing the destination node.

Gets all source (dragged) nodes.

C#
public IList<RadTreeNode> DraggedNodes { get; }
Property Value:

A list of RadTreeNode object representing the source nodes.

Gets or sets the position at which the user drops the source node(s) with regards to the destination nodes.

C#
public RadTreeViewDropPosition DropPosition { get; set; }
Property Value:

One of the RadTreeViewDropPosition enumeration values.

Gets or sets the ID of the HTML element on which the source node(s) is dropped.

C#
public string HtmlElementID { get; set; }
Property Value:

A string representing the ID of the HTML element on which the source node(s) is dropped.

Gets the source (dragged) node.

C#
public RadTreeNode SourceDragNode { get; }
Property Value:

A RadTreeNode object representing the currently dragged node. The first dragged node is returned if there is more than one dragged node.