Question john.smith4237 · Oct 29, 2024

dynaTree doesn't expand completely

Hi Guys,

I'm calling the expandAll() method to expand the whole tree structure but for some reason its only expanding the root folders but not all elements under those folders ?

var tree zenPage.getComponentById( "MyTree");
tree.expandAll(true);
 

Thanks

Comments

Alexander Koblov · Nov 1, 2024

expandAll does not invoke any callback methods.

It shows only the nodes that are defined currently for the tree

See for example sample page csp/samples/ZENTest.DynaTreeTest.cls

Execute zenPage.getComponentById( "tree").expandAll(true); from the Developer console. Note, that no nodes are expanded. Now click on the Vegetable -> Fruit, then collapse them and call zenPage.getComponentById( "tree").expandAll(true); again. Now these nodes are shown. However, children for Animal and Mineral are still not shown, because they are not populated yet

0
john.smith4237  Nov 1, 2024 to Alexander Koblov

Hmm, is there a way or a call that I can make to maybe loop through and expand all nodes?

0