Open multilevel node using for loop

I am a engennering student and new to javascript and dhtmlx i am using dhtmlxtree for my project and want to go from root node to the particular inner most node opening noad at every level. For this i am using for loop and window.setTimeOut().
but the node open one till one or two level and stops there. I have tried both with openNode(itemID) as well as selectNode(ItemId) it still dosnt work. what should i do?

openItem method is enough to open a node on any level, at least you do not use dynamic loading.

In case of dynamic loading, an item from the next level can be opened only after the previous one is loaded.

dhtmlxtree_xw.js provides openItemsDynamic method to open list of items. To open an item you need to pass all its parent items in this method, for example:
tree.openItemsDynamic(“id_0,id_0_1,id_0_1_0”);

In case of dynamic loading you may also try using onOpenStart/onOpenEnd events and open the next item when parent opened

thanks.

sir now i have professional version 2.0 and i am trying to open the tree using openItemsDynamic() and passing a list of node ids from root to the node i want to reach. but i am getting following error on the console
"
temp is null
if (temp.XMLload===0)
"

I am getting the above error on he firefox console.
but when i am putting an alert before this method. every thing open fine to the last last node.
please assist.
thanks in advance.

Hello,
Most probably this issue has been fixed at the latest version of dhtmlxTree (2.6). If issue still occurs for you please provide any kind of demo where we can reproduce it.

thanks
I have licence for dhtmltree pro 2.0 so how can i get dhtmlxtree pro 2.6.
thanks in advance

Please contact sales@dhtmlx.com