Welcome Guest Search | Active Topics | Sign In | Register

TreeView control with AllowDrag and AllowEdit enabled Options
ZeljkoA
Posted: Tuesday, February 16, 2010 10:28:56 AM
Rank: Newbie
Groups: Member

Joined: 2/12/2009
Posts: 2
Hi,

Enabling AllowDragDrop and AllowEdit on a TreeView control makes using a node in editable state a bit weird. Once a node turns into an edit box the mouse select does not work instead holding down a left mouse and draging, drags the node around instead of highlighting a text area.

Now I was trying to dinamicaly disable node's dragability in client script just before invoking BeginEdit() function but it doesn't seem to work.

Any insight would be appreciated (a customer is breathing over my shoulder for this).
eo_support
Posted: Tuesday, February 16, 2010 10:57:17 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There is no client side interface for you to disable drag drop entirely. But you should be able to handle ClientSideOnDragBegin and return false from there to prevent drag drop from starting. You can do this conditionally based on whether a tree node is being edited.

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.