Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ZedR on Dec 05, 2008 06:06
open dhtmlx forum
get tree child items

hello,


I am using latest dhtmlx tree. I want to get immediate child items for a given item node. For example if I have node "A" :

A-> "1" (there may or may not be nodes under node "1")
A->"2"
A->"3"

"1", "2" & "3" are children of "A". I want to get those nodes. I cant find any function for it. Please help.

Thanks a lot.
Answer posted by Support on Dec 05, 2008 08:06
Can be done as
    tree.getSubItems(itemID)
in your case
   tree.setSubItems("A"); // => "1,2,3"