treeview_dragdrop_handler

Client side event handler for all TreeView drag and drop events.

Note: This is a prototype, not a function. You should provide a function that matches this prototype if you wish to handle the corresponding event on the client side. The prototype provides information about the arguments and return value of the function you provide.

Syntax
JavaScript
 treeview_dragdrop_handler(treeview, srcNode, destNode, newIndex)

Parameters

treeview
The TreeView object that fires the event.
srcNode
The TreeNode object that is being dragged.
destNode
This parameter contains different value for different events:
Event Handler Remarks
ClientSideOnDragBegin A null value.
ClientSideOnDragOver The TreeNode object that is currently below the node being dragged.
ClientSideOnDragDrop The TreeNode object that will be the parent node of the node being dragged.
newIndex
The new index of the node when AllowDragReordering is set to true. This argument is null when AllowDragReordering is false.

Return Value

For ClientSideOnDragBegin and ClientSideOnDragDrop, return false to cancel the drag and drop operation; For ClientSideOnDragOver, return false to indicate that the node below the node being dragged can not a drop target.

See Also