dbtreeview bean open and close all

Does somebody have a method where you open and close all levels, so it updates the icons?
Now all items look like they have children, but when you click on some they change to page icons.

The bean is “lazy loading”. That means it only checks for children if you open a node. Initially it does not know if there are children, so it cannot decide what icon to show. You can solve that by opening all nodes to a certain level and close them again when you refresh the tree. Then, the bean has discovered everything. So something like this should do the trick:

elements.bean_215.setNodeLevelVisible(10, true);
elements.bean_215.setNodeLevelVisible(2, false);

Hope this helps.

In 3.5 the display if there are children is corrected

Paul

Thanks for the replies!