I have a treeview which loads its nodes dynamically on expand, which works fine. I also have a button to 'Expand All' to open all nodes as far as the tree goes.
Unfortunately I have no way of knowing how big the tree is or how deep it goes until the data is loaded. So instead of recursively calling '.expand()' until there are no more closed nodes (which would make 10's of server requests for data), I would rather Retrieve the entire tree, and reset the dataSource to a local one that contains all the entire tree.
I'm having some trouble though, when I reset the DS to local and expand a node, the tree is still making a request call which retrieved the entire tree again as node contents. Note that I am also trying to set loadOnDemand to false, but its having no affect.
Any advice on this scenario would be great.