Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by andreea on Oct 28, 2008 07:56
open dhtmlx forum
Sort only the parents , not also the children in a tree

how could I sort only the parents , not also the children in a tree
Answer posted by Support on Oct 28, 2008 08:09

In case of dhtmlxtree it is can be controlled by third parameter of sortTree method, just set it as false
      tree.sortTree(0,"asc",false);

In case of treeGrid - it can't be controlled. The component will sort all levels.