Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stephen on May 26, 2009 00:08
open dhtmlx forum
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
Answer posted by Support on May 26, 2009 01:50
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.