EnableDragAndDropBetweenNodes disable per node

2 posts, 0 answers
  1. Kevin Main
    Kevin Main avatar
    3 posts
    Member since:
    Nov 2009

    Posted 24 Jun 2011 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 24 Jun 2011 Link to this post

    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.
Back to Top