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

Contains event data in an ItemDrop event.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class TreeListItemDragDropEventArgs : EventArgs

Inheritance: objectEventArgsTreeListItemDragDropEventArgs

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

Constructors

C#
public TreeListItemDragDropEventArgs(TreeListDataItemCollection draggedItems, TreeListDataItem destinationItem, TreeListHeaderItem destinationHeaderItem, string htmlElement, IDictionary updatedParentKeyValues)
Parameters:draggedItemsTreeListDataItemCollectiondestinationItemTreeListDataItemdestinationHeaderItemTreeListHeaderItemhtmlElementstringupdatedParentKeyValuesIDictionary

Properties

Gets or sets a value indicating whether the event should be canceled. Canceling an ItemDrop event will prevent automatic item reordering when binding to data source controls through DataSourceID.

C#
public bool Canceled { get; set; }

Gets the destination TreeListDataItem instance. Can be null.

C#
public TreeListDataItem DestinationDataItem { get; }

Gets the destination TreeListHeaderItem instance. Can be null.

C#
public TreeListHeaderItem DestinationHeaderItem { get; }

DraggedItems

TreeListDataItemCollection

Gets the collection of dragged items

C#
public TreeListDataItemCollection DraggedItems { get; }

Gets or sets a value indicating whether the target TreeListDataItem should be expanded after an automatic reorder operation. Meaningful when automatic reordering is enabled in RadTreeList.

C#
public bool ExpandTargetItem { get; set; }

Gets the client-side ID attribute of the HTML element that is the drop target.

C#
public string HtmlElement { get; }

Gets the collection of parent data key values that will be assigned to the dragged items when automatic item reordering is enabled. To change the parent-child relations between the dragged items and the destination item, each item in the DraggedItems collection will have its parent data key values updated with values in this collection.

C#
public IDictionary UpdatedParentKeyValues { get; }