More Finely Tuned Drag & Drop?

1 posts, 0 answers
  1. Robert
    Robert avatar
    253 posts
    Member since:
    Aug 2007

    Posted 20 Oct 2009 Link to this post

    In times past I've successfully implemented drag & drop capability with the RadTreeView.  But now I have a specialized situation for which I don't know if there's a solution:

    Imagine you have a tree with 4 distinct types of nodes:

    A
      B
        C
          D

    In this tree there are 4 levels of nodes.  A B-node can only be a child of an A-node, a C-node can only be a child of a B-node, and a D-node can only be a child of a C-node.

    What I'd like to be able to do is once a drag operation has been commenced by the user, restrict which nodes the dragged one can be dropped on.  Thus for example if the user starts dragging a D-node then it can only be dropped on a C-node.

    If this is possible, how would one accomplish it?

    Robert
Back to Top