Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 21, 2007 17:04
open dhtmlx forum
Iam able to successfully drop only node - without its subitems (by removing the subitems). But our appli...

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.

Answer posted on Feb 21, 2007 17:05

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.

Answer posted by Andrei (Support) on Nov 27, 2014 22:39

If you haven't found the needed information there and still looking for a solution, you will find the additional help checking javascript calendar and web application ui framework.