Thanks Bart!<br><br>In the end, i was able to solve this through the use of GeoExt.tree.LayerLoader.<br>Best regards,<br><br>Hugo<br><br><div class="gmail_quote">On Thu, Feb 17, 2011 at 11:42 AM, Bart van den Eijnden <span dir="ltr"><<a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
something similar is done in GXP, checkout:<br>
<br>
<a href="https://github.com/opengeo/gxp/blob/master/src/script/plugins/LayerTree.js" target="_blank">https://github.com/opengeo/gxp/blob/master/src/script/plugins/LayerTree.js</a><br>
<br>
and search for iconCls.<br>
<br>
Best regards,<br>
Bart<br>
<br>
--<br>
Looking for flexible support on OpenLayers or GeoExt? Please check out <a href="http://www.osgis.nl/support.html" target="_blank">http://www.osgis.nl/support.html</a><br>
<br>
Bart van den Eijnden<br>
OSGIS<br>
<a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a><br>
<div><div></div><div class="h5"><br>
On Feb 17, 2011, at 12:34 PM, Hugo wrote:<br>
<br>
> 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>
><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>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
> <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote></div><br><br clear="all"><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>