Hello all,<br><br>I'm trying to change the default ExtJS icons of tree nodes that are inside a container but, until the moment, with no success. So, i have a GeoExt.tree.LayerContainer with 3 layers. I'm able to change the parent node icon through the config option iconCls. However, this is not working with the child nodes od this layer container. I've tried the following:<br>
<br>//my container<br>var baseStreetCont = new GeoExt.tree.BaseLayerContainer({<br> text: 'Arruamentos',<br> layerStore: baseLayerStore,<br> expanded: true,<br> allowDrop: false<br>});<br clear="all">
<br>baseStreetCont.eachChild(function(node){<br> node.attributes.iconCls = 'raster';<br>});<br><br>I've also tried:<br><br>var treePanel (my tree panel configurations)<br><br>treePanel.getLoader().on('beforeload', function(loader, node){<br>
node.eachChild(function(node){<br> node.attributes.iconCls = 'raster';<br> }, loader);<br>});<br><br>Any suggestions?<br>Thanks,<br>Hugo<br><br>-- <br>Hugo Martins<br>LabNT - ISEGI UNL<br>Campus de Campolide<br>
1070-312 Lisboa<br>N 38°43'56.84", W 9°9'35.74"<br>