Hello GeoExt List,<br><br>I have a tree panel with some nodes/containers etc. I want to be able to use setIconCls to change their iconCls <i><b>after</b></i> the tree has been created. Unfortunately when I try to use this method I get an error in firebug tell me that setIconCls is not a function...what am I doing wrong here?<br>
<br>layerRoot = new Ext.tree.TreeNode({<br> text: "All Layers",<br> expanded: true<br> });<br><br>tibetContainer = new Ext.tree.TreeNode({<br> text: "Tibetan Labels",<br>
expanded: true,<br> id: 'tibet'<br> });<br><br>var layerTree = new Ext.tree.TreePanel({<br> overflow: 'visible', // For the Combo popup<br> region: "west",<br>
title: "Map Layers", <br> root: layerRoot,<br> loader: new Ext.tree.TreeLoader({applyLoader: false}),<br> enableDD: true,<br> collapsible: true,<br>
width: 300,<br> autoScroll: true,<br> expanded: false<br> });<br><br>layerRoot.getOwnerTree().getNodeById(tibetContainer.id).setIconCls('myClass'); //fails<br>
<br>Thanks for your time,<br><br>elshae<br><br><br>