Hi,
I would like to make the treeview bean load with all nodes expanded rather than collapsed ??, I found the following ```
elements[vElemName].setNodeLevelVisible(2,true);
something like this
var vNumberNodes = elements[vElemName].getNodes();
elements[vElemName].setNodeLevelVisible(vNumberNodes,true);
No, there is no such function, because that would mean a lot of overhead, because Servoy would have to load all the related data into memory to determine if each node has children.
You’d have to balance performance here with how things look.
Of course, since you setup the structure where the bean gets the data from, you could loop through the underlying structure of foundsets and relations and find the max number of nodes yourself, but be aware of performance.