Hello again,<br><br>As I just said on my last email, I managed to dinamically generate a treeConfig var that describes the whole tree with parents and children but doing in that way, I have lost a functionality I had when I wasn&#39;t groupping the layers, that was appending the Legend to each layer when node was created through the following function<br>
<br>createNode: function(attr) {<br>                    // add a WMS legend to each node created<br>                    attr.component = {<br>                        xtype: &quot;gx_wmslegend&quot;,<br>                        layerRecord: mapPanel.layers.getByLayer(attr.layer),<br>
                        showTitle: false,<br>                        // custom class for css positioning<br>                        // see tree-legend.html<br>                        cls: &quot;legend&quot;<br>                    }<br>
                    return GeoExt.tree.LayerLoader.prototype.createNode.call(this, attr);<br>                },<br><br>Any idea to append this after created?<br><br>Thank you very much indeed in advance.<br><br>Juan,<br>