I need to accomplish the following with drag and drop for Tree using 0.4 version of DOJO Tree. A) Limit the drag and drop of nodes only within the same parent/level. B) The parent node (along with its children) can be moved up and down, as long as it is in the same level. I will choose a node and will click on a Up/Down button for moving up/down. C) I need to remove the parent (along with all children) by clicking on a Delete button.
I have created tree programmatically that does DND through all levels. I will appreciate any help with 2 questions:
1) How can I limit the move within the same level only. 2) How can I remove/delete a node along with all children? 3) I also want to add a radio button beside each and every node of the tree which will have the key value for each node. But as I am creating the tree dynamically using DOBO script, how can I modify the script below to place a radio button beside each and every tree node?