Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Jul 17, 2008 03:05
open dhtmlx forum
DHTMLX Tree : Get the checked item in certain order

Hi,
I want the checked items in order of "from-Parent-to-Child" node.
I used : getAllCheckedBranches(), getAllChecked(), getAllPartiallyChecked(); but not working it gives from child to parent.
How to get it ?
Answer posted on Jul 17, 2008 03:48
Actually the
    tree.getAllChecked()
returns checked items in hierarchical order - parents before child items.

In any case you can just reverse list as
    var list = list.split(",").reverse().join(",")