Hi,
You would use ClientSideOnDragOver and ClientSideOnDragDrop. These are two functions that you would provide and all the necessary information are passed to you as function arguments:
http://www.essentialobjects.com/doc/1/jsdoc.public.handlers.treeview_dragdrop_handler.aspxFor example, the following code does not allow dropping if the target node's text is "No Drop Zone!":
Code: HTML/ASPX
<eo:TreeView ClientSideOnDragDrop="drop_handler" ...>
.....
</eo:TreeView>
Code: JavaScript
function drop_handler(treeview, srcNode, destNode, newIndex)
{
if (destNode.getText() == "No Drop Zone!")
return false;
}
The key points are:
1. The srcNode and destNode are passed to your function through function arguments;
2. You return false from your function to cancel the drag drop;
Hope this helps. Please feel free to let us know if you still have any questions.
Thanks