New to Kendo UI for Angular? Start a free 30-day trial

TreeItemDropEvent

Arguments for the TreeView nodeDrop event.

NameTypeDefaultDescription

destinationItem

TreeItemLookup

The look-up info for the item onto which the dragged item is dropped.

destinationTree

TreeViewComponent

A reference of the TreeView onto which the dragged item is dropped.

dropPosition

DropPosition

Describes where the dragged item is dropped relative to the drop target item.

originalEvent

PointerEvent

The original pointer event holding details about the current pointer position.

sourceItem

TreeItemLookup

The look-up info for the dragged item.

sourceTree

TreeViewComponent

A reference of 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

Specifies if the drop action should be marked as valid. If set to false, the addItem and removeItem events will not be fired and the drag clue will be animated back to the source item to indicate the action is marked as invalid.

Parameters

isValid

boolean