Welcome Guest Search | Active Topics | Sign In | Register

Treeview Drag & Drop Options
ITMA
Posted: Tuesday, March 12, 2013 3:47:50 AM
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
eo_support
Posted: Tuesday, March 12, 2013 8:50:08 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.