Contains event data in an ItemDrop event.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class TreeListItemDragDropEventArgs : EventArgs
Inheritance: objectEventArgsTreeListItemDragDropEventArgs
Inherited Members
Constructors
public TreeListItemDragDropEventArgs(TreeListDataItemCollection draggedItems, TreeListDataItem destinationItem, TreeListHeaderItem destinationHeaderItem, string htmlElement, IDictionary updatedParentKeyValues)
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.
public bool Canceled { get; set; }
Gets the destination TreeListDataItem instance. Can be null.
public TreeListDataItem DestinationDataItem { get; }
Gets the destination TreeListHeaderItem instance. Can be null.
public TreeListHeaderItem DestinationHeaderItem { get; }
DraggedItems
TreeListDataItemCollection
Gets the collection of dragged items
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.
public bool ExpandTargetItem { get; set; }
Gets the client-side ID attribute of the HTML element that is the drop target.
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.
public IDictionary UpdatedParentKeyValues { get; }