<div>Update...</div>
<div>The problem was the Format.JSON().write function... It was not rendering the baseAttrs method...</div>
<div>I put that inside </div>
<div>      root: {<br>            nodeType: &quot;async&quot;,          <br>            children:</div>
<div>...</div>
<div> </div>
<div>And worked fine...</div>
<div> </div>
<div>Thanks Andreas for the great help!</div>
<div> </div>
<div>Paul<br><br></div>
<div class="gmail_quote">On Thu, Oct 1, 2009 at 2:26 PM, Paul james <span dir="ltr">&lt;<a href="mailto:pauljame@gmail.com">pauljame@gmail.com</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>Thanks again Andreas...</div>
<div>I tried that code (just added cb variable)...</div>
<div>But the radio button never shows up... No javascript error reported as well... I think it is not entering in render function ...</div>
<div>Any idea?</div>
<div> </div>
<div>
<div class="im"> loader: {<br>            param: &quot;LAYERS&quot;,<br>            baseAttrs: {<br>                uiProvider: Ext.extend(Ext.tree.TreeNodeUI, {<br>                    render: function(bulkRender) {<br></div>
                        var cb = this.checkbox; //added 
<div class="im"><br>                        Ext.tree.TreeNodeUI.prototype.render.apply(this, arguments);<br>                        Ext.DomHelper.insertAfter(cb, &#39;&lt;input type=&quot;radio&quot; class=&quot;gx-tree-radio&quot; name=&quot;radio&quot;&gt;&lt;/input&gt;&#39; );<br>
                    },<br>                    onClick: function(e) {<br>                        if(e.getTarget(&#39;.gx-tree-radio&#39;, 1)) {<br>                            // do whatever you want to do when radio button was clicked<br>
                        }<br>                        else {<br>                            Ext.tree.TreeNodeUI.prototype.onClick.apply(this,arguments);<br>                        }<br>                    }<br>                })<br>
            }<br>        }<br></div></div><font color="#888888">
<div> </div>
<div>Paul<br> </div></font>
<div>
<div></div>
<div class="h5">
<div class="gmail_quote">On Thu, Oct 1, 2009 at 5:35 AM, Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org" target="_blank">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 Paul,<br><br>in the simplest case, it would look something like this:<br>
<div><br>nodeType: &quot;gx_layer&quot;,<br>layer: &quot;Tasmania (Group Layer)&quot;,<br>isLeaf: false,<br>loader: {<br>   param: &quot;LAYERS&quot;,<br>   baseAttrs: {<br></div>       uiProvider: Ext.extend(Ext.tree.TreeNodeUI, {<br>
           render: function(bulkRender) {<br>               Ext.tree.TreeNodeUI.prototype.render.apply(this, arguments);<br>               Ext.DomHelper.insertAfter(cb,<br>                 &#39;&lt;input type=&quot;radio&quot; class=&quot;gx-tree-radio&quot;<br>
name=&quot;radio&quot;&gt;&lt;/input&gt;&#39;<br>               );<br>           },<br>           onClick: function(e) {<br>               if(e.getTarget(&#39;.gx-tree-radio&#39;, 1)) {<br>                   // do whatever you want to do when radio button was<br>
clicked<br>               } else {<br>                    Ext.tree.TreeNodeUI.prototype.onClick.apply(this,<br>arguments);<br>               }<br>           }<br>       })<br>   }<br>}<br><br>Regards,<br>Andreas.<br>
<div><br>Paul james wrote:<br>&gt; I was talking about that with Andreas :<br>&gt;<br>&gt; &gt; What I tried to do :<br>&gt; &gt; 1-) Add radio button to Group Layer ...<br>&gt; &gt; nodeType: &quot;gx_layer&quot;,<br>&gt; &gt;         layer: &quot;Tasmania (Group Layer)&quot;,<br>
&gt; &gt;         isLeaf: false,<br>&gt; &gt;         loader: {<br>&gt; &gt;             param: &quot;LAYERS&quot;,<br>&gt; &gt;             baseAttrs: {radioGroup: &quot;foo2&quot;}<br>&gt; &gt;         }<br>&gt; &gt;<br>
&gt; &gt; That doesnt work... Radio never shows up...<br>&gt; Andreas Hocevar:<br>&gt;<br>&gt; &gt; Yeah, because sub-nodes use a plain TreeNodeUI. If you want to use these<br>&gt; &gt; additional radio buttons, you can try to configure the LayerParamNodes<br>
&gt; &gt; with a LayerNodeUI. But I doubt that this will work out of the box.<br>&gt; &gt; Otherwise, it requires a custom UI. Patches for a generic<br>&gt; &gt; additional-radio-button-UI-mixin are welcome.<br>&gt;<br></div>
&gt; Now, I悲 like help, and how can I do that custom UI... Any help will<br>&gt; be great...<br>&gt;<br>&gt;<br>&gt; Paul<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>
&gt; Users mailing list<br>&gt; <a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br>&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><font color="#888888"><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></font></blockquote></div>
<br></div></div></blockquote></div><br>