Iam
able to successfully drop only node - without its subitems (by removing the
subitems). But our application demands one more requirement, after successfully
dropping a node without its subitems, sometimes the subitems needs to move one
level up in the hierarchy, depending upon user choice. Is there any way, where
I can move the subitems and the related sub items one level up in the hierarchy
of the tree, after dropping the parent item at another place in the tree ?
Please let me know if there are any methods that help me do the above task
either in Standard or Professional version of your tree API.
Pro version supports powerful “moveItem”
functionality, which allows to move item inside tree or between trees in
different modes. For your case the next code can be used:
mytree.moveItem(itemId,“up”);
This will move item (and related subitems) one level
up, so it will be placed as a sibling of its old parent item.
This functionality can be implemented in standard
version as well, by using doCut and doPaste functionality - but it will require
a lot of code.