Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by zedR on Apr 17, 2009 07:16
open dhtmlx forum
dhtmlx Tree with dataprocessor

How to get all nodes of a given level inside a given node?
Example:

A->B->b1,b2,b3
->C->c1,c2,c3

If level 3 then I should get ids of b1,b2,b3,c1,c2,c3 for given item id of A

If level 2 is given I should get ids of B & C for A.
Thanks.
Answer posted by Alex (support) on Apr 20, 2009 02:48

You can try to use getSubItems. It returns the list of all subitems ids from the next level of tree.

In order to get all items from 3rd level you must get all ids from the 2nd level and them their child items by getSubItems. The items from the second level can be gotten using teh same approach.