This is a migrated thread and some comments may be shown as answers.

EnableDragAndDropBetweenNodes disable per node

1 Answer 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kevin Main
Top achievements
Rank 1
Kevin Main asked on 24 Jun 2011, 11:23 AM
Hi, 

Just wondering if there is a way to disable the Drag in-between functionality for a paticular node in the TreeView.

I can stop dragging over by setting the nodes AllowDrop property to false but if EnableDragAndDropBetweenNodes is turned on then it can still be dragged under the node - this setting appears to be global and not settable per node.

So is there a way to do it? Or do I need to catch this in the OnNodeDrop method? This is not an ideal way to do it as it would appear to the user as if they could do it because it wouldn't have the "no drop" icon.    

Thanks in advance
Kev

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Jun 2011, 12:52 PM
Hello Kevin,

You could handle this in "OnClientNodeDropping" event of RadTreeView. You cna easily cancel the event using "set_cancel()" method based on your conditions.

Check out the following help article for more on this.
OnClientNodeDropping.

Thanks,
Princy.
Tags
TreeView
Asked by
Kevin Main
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or