Ivan,
should the .select_branch be called in the onload or onopen callbacks?
I use async loading for the tree and do not set the children attribute
in the JSON.
Also, if the node doesn't have children, I set the 'state' attribute
to empty(see the 2nd node in the JSON below).
[{attributes: { id: '123'},state: 'closed',data: 'xyz',},{attributes:
{id: '456'},state:'',data: 'pqr'}]
So the idea is to load the children on clicking the node, but if there
are no children to the node it should not show the closed/opened icons
next to it.
I observed that if I set the state to 'open' the node ID passed in
'selected' gets highlighted but the open icons appear next to all the
nodes.
--
Akshay