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).
|
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!
|