PDA

View Full Version : TreePanel: Restricting leaf drag/drop within its parent node only



hari41980
25 Jul 2012, 1:43 AM
Hi,

Wishes and greetings.

I need the tree to behave in such a way that when a user drags a leaf and tries to order it, the leaf can be ordered only within its parent. Can any one help me out in this...

eg:

fruits and vegetables(Root)
------\Fruits(Parent1)
---------\Orange (Leaf1.1)
---------\Apple (Leaf1.2)
---------\Dragon Fruit (Leaf1.3)
------\Veggie(Parent2)
---------\Potato (Leaf1)
---------\Beetroot (Leaf2)
---------\Yam (Leaf3)

The ordering is allowed only between the fruits or vegetables. Leaf's 1.1,1.2,1.3 can be sorted inside parent 1 only. Same way parent 1 can be moved down and parent 2 can be moved up.

Thanks