<div>You are right, It works, but it dont turns on/off the childrenīs checkboxes... Is that a way to do that? Itīs kind useless that way...</div>
<div> </div>
<div>Paul<br><br></div>
<div class="gmail_quote">On Wed, Oct 7, 2009 at 4:02 PM, 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">Hey-<br><br>where exactly did you set the checked attribute? Because this is exactly<br>how it should work.<br>
<br>Note though that a checkbox won&#39;t be connected to children&#39;s checkboxes<br>in Ext.<br>
<div class="im"><br>Regards,<br>Andreas.<br><br>Paul james wrote:<br></div>
<div class="im">&gt; Thanks Andreas!<br>&gt;<br>&gt; Jumping to the last question..<br>&gt; I have that tree configuration :<br>&gt;<br>&gt; {<br>&gt;                     id: &#39;Transporte&#39;,<br>&gt;                     text:<br>
&gt; &#39;Transporte&#39;,<br>&gt;                     children:<br>&gt;                     [<br>&gt;                         {<br>&gt;                             id: &#39;Rodoviario&#39;,<br>&gt;                             text:<br>
&gt; &#39;Rodoviario&#39;,<br>&gt;                             children:<br>&gt;                             [<br>&gt;                                 {<br>&gt;                                     nodeType: &quot;gx_layer&quot;,<br>
&gt;                                     id: &quot;RodoviaFederal&quot;,<br>&gt;                                     layer: &quot;Rodovia Federal&quot;,<br>&gt;                                     isLeaf:<br>&gt; false,<br>
&gt;                                     loader: {<br>&gt;                                         param: &quot;LAYERS&quot;,<br>&gt; ...<br>&gt;<br>&gt; The checkbox is only generated in last level ( RodoviaFederal and<br>
&gt; sublayers) ... How can I generate checkbox for all levels? Using<br>&gt; &quot;checked&quot; attribute, it appers, but doest work ... Any idea?<br>&gt;<br>&gt; Paul<br>&gt;<br>&gt; On Wed, Oct 7, 2009 at 4:09 AM, Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a><br>
</div>
<div class="im">&gt; &lt;mailto:<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;&gt; wrote:<br>&gt;<br>&gt;     Paul james wrote:<br>&gt;     &gt; About my other problem (Change sublayer label on treeview) ...<br>
&gt;     &gt; I tried with that :<br>&gt;     &gt;<br>&gt;     &gt; tree.on(&#39;beforeappend&#39;, function(tree, parent, node){<br>&gt;     &gt;   node.text = &quot;test&quot;;<br>&gt;     &gt;  });<br>&gt;     &gt;<br>
&gt;     &gt; It only changes the last child... Can you help me on that?<br>&gt;<br>&gt;     I think so. Because the visual representation of the layer order<br>&gt;     is the<br>&gt;     other way around as the layer stack, nodes are inserted rather than<br>
&gt;     appended. Try the following:<br>&gt;<br>&gt;     function setText(tree, parent, node) {<br>&gt;        node.text = &quot;test&quot;;<br>&gt;     }<br>&gt;     tree.on({<br>&gt;        beforeappend: setText,<br>&gt;        beforeinsert: setText<br>
&gt;     });<br>&gt;<br>&gt;     Regards,<br>&gt;     Andreas.<br>&gt;<br>&gt;     --<br>&gt;     Andreas Hocevar<br>&gt;     OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>&gt;     Expert service straight from the developers.<br>
&gt;<br>&gt;<br></div>
<div class="im">&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
</div>
<div class="im">&gt; <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>&gt;<br><br><br>--<br></div>
<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>