Tree refresh problems

I want to refresh several nodes in the tree (maybe the parent node and children of the selected one).
And I want the selected node remaining the selected/open/close state.
And the selected node finally fires an onSelect event to refresh the corresponding other areas.

in selectItem(itemId,mode,preserve), what do the 2nd and 3rd paras mean? what will they affect? How to select an item but not fireing onSelect event?

what does focusItme() do? I tried it, but there’s no effect.

refreshItem seems excuting asynchronously, and will it lead to fail to selectItem if the be selected on is the descendant of the refreshing ones?

Which edition are you using: PRO or Standard ? PRO provides smartRefreshItem and smartRefreshBranch that preserve open start.

An event that is called after refreshItem is onXLE.

The tree version is pro 2.5, but the dhtmlxcommon is extracted from the later std.3.0.
Thanks!

So, try smartRefreshBranch method.
tree.smartRefreshBranch(“itemId”,url);

the second parameter is the path to the server-side script that returns xml for the branch including parent item:

...

smartRefreshBranch can not be used in case of dynamic loading.