Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Apr 28, 2008 22:25
open dhtmlx forum
Node sort

Hi, I need to alter order of the child nodes of s parent in a tree (via Javascript). How can i do this?

Regards,
Answer posted by Support on Apr 29, 2008 02:17
You can use
    tree.sortTree(id,"ASC");
or
    tree.sortTree(id,"DES");

where id - id of parent node
( please be sure to include ext/dhtmlxtree_sb.js )