Thanks Andreas for the tip.<br>By adding:<br><br>loader: new Ext.tree.TreeLoader({applyLoader: false}),<br><br>in the config tree, it seems to work.<br>Thanks,<br>Cédric<br><br><div class="gmail_quote">2009/10/16 Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Cédric,<br>
<br>
try adding<br>
<br>
loader: new GeoExt.tree.TreeLoader({applyLoader: false})<br>
<br>
to your tree config.<br>
<br>
Regards,<br>
Andreas.<br>
<br>
Cédric Moullet wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi,<br>
With GeoExt 0.5, we were able to use the following syntax to create a layer tree:<br>
<br>
                {<br>
                    title: &quot;Layer tree&quot;,<br>
                    region: &quot;west&quot;,<br>
                    width: 150,<br>
                    xtype: &quot;treepanel&quot;,<br>
                    root: {<br>
                        nodeType: &quot;gx_layercontainer&quot;,<br>
                        layerStore: new GeoExt.data.LayerStore({<br>
                            map: map,<br>
                            layers: layers<br>
                        }),<br>
                        leaf: false,<br>
                        expanded: true<br>
                    },<br>
                    rootVisible: true<br>
                }<br>
<br>
It seems that with GeoExt 0.6, the tree never loads. Any idea of the reason ?<br>
Thanks,<br>
Cédric<br>
<br>
-- <br>
CTO Geospatial Camptocamp SA<br>
Cédric Moullet<br>
PSE A<br>
CH-1015 Lausanne<br>
</div><a href="http://www.camptocamp.com" target="_blank">www.camptocamp.com</a> &lt;<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a>&gt;  / <a href="http://www.mapfish.org" target="_blank">www.mapfish.org</a> &lt;<a href="http://www.mapfish.org" target="_blank">http://www.mapfish.org</a>&gt; / <a href="http://twitter.com/cedricmoullet" target="_blank">twitter.com/cedricmoullet</a> &lt;<a href="http://twitter.com/cedricmoullet" target="_blank">http://twitter.com/cedricmoullet</a>&gt; / <a href="http://mapfishblog.blogspot.com/" target="_blank">mapfishblog.blogspot.com/</a> &lt;<a href="http://mapfishblog.blogspot.com/" target="_blank">http://mapfishblog.blogspot.com/</a>&gt;<div class="im">

<br>
<br>
+41 79 759 69 83 (mobile)<br>
+41 21 619 10 21 (direct)<br>
+41 21 619 10 10 (centrale)<br>
+41 21 619 10 00 (fax)<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org" target="_blank">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>
<br>
<br>
-- <br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>CTO Geospatial Camptocamp SA<br>Cédric Moullet<br>PSE A<br>CH-1015 Lausanne<br><a href="http://www.camptocamp.com">www.camptocamp.com</a>  / <a href="http://www.mapfish.org">www.mapfish.org</a> / <a href="http://twitter.com/cedricmoullet">twitter.com/cedricmoullet</a> / <a href="http://mapfishblog.blogspot.com/">mapfishblog.blogspot.com/</a><br>

<br>+41 79 759 69 83 (mobile)<br>+41 21 619 10 21 (direct)<br>+41 21 619 10 10 (centrale)<br>+41 21 619 10 00 (fax)<br>