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

More Finely Tuned Drag & Drop?

0 Answers 27 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 20 Oct 2009, 10:08 PM
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

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Robert
Top achievements
Rank 1
Share this question
or