PDA

View Full Version : Tree not showing icons until clicked



Paul2000
5 Jun 2009, 7:04 AM
Has anyone see the behavior shown in attachment folders1.gif?

The icons don't show when I first load the screen, but when I click on the arrow, the folder icon displays.

This is the case for node objects, not leaf icons.


tree = new Tree();

tree.getStyle().setLeafIconStyle("tree-folder");

TreeBuilder.buildTree(tree,folderModel);

Paul2000
10 Jun 2009, 8:37 AM
If I populate the tree before adding it to my page, it shows correctly, but if I add it to the page, then populate it later (with the results of an RPC call), the folder node icons do not show.

Any ideas?