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.


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.