<div>Thanks Andreas! </div>
<div> </div>
<div>Jumping to the last question..</div>
<div>I have that tree configuration :</div>
<div> </div>
<div>{<br>                    id: &#39;Transporte&#39;,                    <br>                    text: &#39;Transporte&#39;,                                                     <br>                    children:<br>                    [  <br>
                        {<br>                            id: &#39;Rodoviario&#39;,                    <br>                            text: &#39;Rodoviario&#39;,                            <br>                            children:<br>
                            [<br>                                {<br>                                    nodeType: &quot;gx_layer&quot;,<br>                                    id: &quot;RodoviaFederal&quot;,<br>                                    layer: &quot;Rodovia Federal&quot;,<br>
                                    isLeaf: false,                            <br>                                    loader: {<br>                                        param: &quot;LAYERS&quot;,<br>...</div>
<div> </div>
<div>The checkbox is only generated in last level ( RodoviaFederal and sublayers) ... How can I generate checkbox for all levels? Using &quot;checked&quot; attribute, it appers, but doest work ... Any idea?</div>
<div> </div>
<div>Paul<br><br></div>
<div class="gmail_quote">On Wed, Oct 7, 2009 at 4:09 AM, Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">Paul james wrote:<br>&gt; About my other problem (Change sublayer label on treeview) ...<br>&gt; I tried with that :<br>&gt;<br>&gt; tree.on(&#39;beforeappend&#39;, function(tree, parent, node){<br>&gt;   node.text = &quot;test&quot;;<br>
&gt;  });<br>&gt;<br>&gt; It only changes the last child... Can you help me on that?<br><br></div>I think so. Because the visual representation of the layer order is the<br>other way around as the layer stack, nodes are inserted rather than<br>
appended. Try the following:<br><br>function setText(tree, parent, node) {<br>   node.text = &quot;test&quot;;<br>}<br>tree.on({<br>   beforeappend: setText,<br>   beforeinsert: setText<br>});<br><br>Regards,<br>Andreas.<br>
<font color="#888888"><br>--<br></font>
<div>
<div></div>
<div class="h5">Andreas Hocevar<br>OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>Expert service straight from the developers.<br><br></div></div></blockquote></div><br>