New to Kendo UI for AngularStart a free 30-day trial

TreeItemDropEvent

Arguments for the TreeView nodeDrop event.

NameTypeDefaultDescription

destinationItem

TreeItemLookup

Lookup information for the item onto which the dragged item is dropped.

destinationTree

TreeViewComponent

Reference to the TreeView onto which the dragged item is dropped.

dropPosition

DropPosition

Represents the drop position relative to the target item.

originalEvent

PointerEvent

The original pointer event containing details about the pointer position.

sourceItem

TreeItemLookup

Lookup information for the dragged item.

sourceTree

TreeViewComponent

Reference to the TreeView from which the dragged item originates.

Methods

isDefaultPrevented

If the event is prevented by any of its subscribers, returns true.

Returns

boolean

true if the default action was prevented. Otherwise, returns false.

preventDefault

Prevents the default action for a specified event. In this way, the source component suppresses the built-in behavior that follows the event.

setValid

Sets whether the drop action is valid. If set to false, the addItem and removeItem events will not be fired and the drag clue will animate back to the source item to indicate the action is invalid.

Parameters

isValid

boolean

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