I have a tree which was created on a layout like this:
dhxTree = dhxMainLayout.cells(“b”).attachTree();
I load the content of the tree from the server via a servlet:
The tree loads successfully, but is always collapsed. I want the tree to be opened completely after
I have tried every API i can find but the tree is always collapsed:
Also, after refreshing the tree, again it is rendered as collapsed:
I’m sure it is something simple, but can’t find any other posts with a similar problem. Can you help?
loadXML loads data asynchronously. So, you need to call item opening from onLoadingEnd handler:
I’m also using openAllItems in the afterCall function of loadXML. However, I have an array of trees that I need to refresh, and apparently the tree name cannot be dynamic in the afterCall function.
for (var i = 1; i < anzBaum; ++i)
loadURL = "http://xxx.cfm?spalte=" + i;
throws error “‘Baum[…]’ is Null oder not an Object”. I tried to pass “i” as a parameter in the function call:
which gives the same error.
Calling an external function as afterCall function and passing “i” as parameter gives no error, but doesn’t open the items:
What can I do to open all items after the tree refresh?