Rank: Advanced Member Groups: Member
Joined: 6/23/2010 Posts: 48
|
Hi
I’m working on a tool that is tracking where individuals are in a certain process. The process itself is pretty complex why I wish to restrict how each and one are able to move ahead.
Actually your Treeview would be elegant to use for that purpose. Just drag a person from one process step to another according to other principles than the web application itself.
To accomplish this, I need to restrict drag and drop available only at its ”end / top level nodes”. For instance, if a user drags the menu item to a previous /earlier level that should not be possible, the action is canceled.
Best Regards
ITMA
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
You will need to handle the TreeView's ClientSideOnDragBegin, ClientSideOnDragOver and ClientSideOnDragDrop client side event handler, then return false from those event handlers in order to prevent an item to be dropped to a specific item. Inside your handler you can check both srcNode and destNode object to see whether it is a node that you wish to start a drag drop or accept a drag drop.
Thanks!
|