<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: 'Transporte', <br> text: 'Transporte', <br> children:<br> [ <br>
{<br> id: 'Rodoviario', <br> text: 'Rodoviario', <br> children:<br>
[<br> {<br> nodeType: "gx_layer",<br> id: "RodoviaFederal",<br> layer: "Rodovia Federal",<br>
isLeaf: false, <br> loader: {<br> param: "LAYERS",<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 "checked" 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"><<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>></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>> About my other problem (Change sublayer label on treeview) ...<br>> I tried with that :<br>><br>> tree.on('beforeappend', function(tree, parent, node){<br>> node.text = "test";<br>
> });<br>><br>> 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 = "test";<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>