Can't loop tree items?

how to loop tree items? is there forEachItem() or something like this?

Use method getAllSubItems(itemId) and iterate all the items.
docs.dhtmlx.com/doku.php?id=dhtm … llsubitems