dhtmlxTree changeItemId does not affect children

If I have a tree with itemIds



/topA

/topB/bottom



and I use changeItemId(topA, topB) then this leaves me with a tree with itemIds



/topB

/topA/bottom



how do I get



/topB

/topB/bottom

The ID is defined on per item base, so change of parent ID will not change IDs of child items automatically.
You can use getSubItems to get list of child items, and call changeItemId against each of them.