Thanks a lot for your help Andreas. Only one minor change to your suggestions: i had to replace the uiProvider defintion using the object itself (LayerNodeUI).<br><br>Kind regards,<br>Hugo<br><br><div class="gmail_quote">On Mon, Apr 4, 2011 at 11:30 AM, Andreas Hocevar <span dir="ltr"><<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
a LayerNode should not have a loader. Either you configure a container node (Ext.tree.Node) with a loader, or you configure individual layer nodes (GeoExt.tree.LayerNode) with attributes. In the latter case, instead of<br>
<div class="im"><br>
loader: {<br>
baseAttrs: {<br>
radioGroup: 'theme'<br>
uiProvider: 'layernodeui'<br>
}<br>
}<br>
<br>
</div>you would just configure<br>
<br>
radioGroup: 'theme',<br>
uiProvider: 'layernodeui'<br>
<br>
For testing, you can also remove the uiProvider config option.<br>
<br>
Regards,<br>
Andreas.<br>
<div><div></div><div class="h5"><br>
On Apr 4, 2011, at 11:45 , Hugo wrote:<br>
<br>
> Hello all,<br>
><br>
> I'm still struggling with this... Until the moment i had no success on rendering a GeoExt.tree.LayerNode with the radio button plugin. My definition of the layer node is the following:<br>
><br>
> var sessao2LayerNode = new GeoExt.tree.LayerNode({<br>
> layer: ppsessao2,<br>
> leaf: true,<br>
> loader: {<br>
> baseAttrs: {<br>
> radioGroup: 'theme',<br>
> uiProvider: 'layernodeui'<br>
> }<br>
> }<br>
> });<br>
><br>
> Nevertheless, when i add this node to the tree it is rendered with the checkbox only. What am i doing wrong here?<br>
><br>
> Thanks.<br>
> Kind regards,<br>
><br>
> Hugo<br>
><br>
><br>
><br>
><br>
> ---------- Forwarded message ----------<br>
> From: Hugo <<a href="mailto:hfpmartins@gmail.com">hfpmartins@gmail.com</a>><br>
> Date: Wed, Mar 30, 2011 at 5:56 PM<br>
> Subject: Tree Node with children using Radio Button plugin<br>
> To: <a href="mailto:users@geoext.org">users@geoext.org</a><br>
><br>
><br>
> Hello all,<br>
><br>
> Is it possible to have a parent node with children rendered with and without RadioButton? I need to include two layers inside the same parent node but i would like to have one of them rendered with a radio button an the other without the radiobutton (just with the checkbox). The relevant part of code i'm using is as follows:<br>
><br>
> var LayerNodeUI = Ext.extend(GeoExt.tree.LayerNodeUI, new GeoExt.tree.TreeNodeUIEventMixin());<br>
><br>
> var sessao2LayerNode = new GeoExt.tree.LayerNode({<br>
> layer: ppsessao2,<br>
> leaf: true,<br>
> loader: {<br>
> baseAttrs: {<br>
> radioGroup: 'theme',<br>
> uiProvider: 'layernodeui'<br>
> }<br>
> }<br>
> });<br>
><br>
> var forunspp = new GeoExt.tree.LayerNode({<br>
> layer: locaisPP<br>
> });<br>
><br>
> var session2Node = new Ext.tree.TreeNode({<br>
> text: '2º Fórum',<br>
> id: 'session2node',<br>
> expanded: false,<br>
> expandable: true<br>
> });<br>
><br>
> var layerRoot = new Ext.tree.TreeNode({});<br>
><br>
> var layerTree = new Ext.tree.TreePanel({<br>
> title: 'Temas',<br>
> layout: 'fit',<br>
> root: layerRoot,<br>
> rootVisible: false,<br>
> loader: new Ext.tree.TreeLoader({applyloader: false}),<br>
> enableDD: false,<br>
> autoScroll: true,<br>
> expanded: true,<br>
> border: true,<br>
> plugins: [<br>
> new GeoExt.plugins.TreeNodeRadioButton({<br>
> listeners: {<br>
> 'radiochange': function(node) {}<br>
> }<br>
> })<br>
> ],<br>
> loader: new Ext.tree.TreeLoader({<br>
> applyLoader: false,<br>
> uiProviders: {<br>
> 'layernodeui': LayerNodeUI<br>
> }<br>
> })<br>
> });<br>
><br>
> layerRoot.appendChild(forunspp);<br>
> layerRoot.appendChild(sessao2LayerNode);<br>
><br>
> With this code the parent node is filled with two layers but, however, both of them are rendered with the checkbox only.<br>
> Is it possible to load the second and only the second layer with a radio button?<br>
> Thanks in advance.<br>
><br>
> Kind regards,<br>
> Hugo<br>
><br>
><br>
> --<br>
> Hugo Martins<br>
> LabNT - ISEGI UNL<br>
> Campus de Campolide<br>
> 1070-312 Lisboa<br>
> N 38°43'56.84", W 9°9'35.74"<br>
><br>
><br>
><br>
> --<br>
> Hugo Martins<br>
> LabNT - ISEGI UNL<br>
> Campus de Campolide<br>
> 1070-312 Lisboa<br>
> N 38°43'56.84", W 9°9'35.74"<br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@geoext.org">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>
<font color="#888888"><br>
<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><br clear="all"><br>-- <br>Hugo Martins<br>LabNT - ISEGI UNL<br>Campus de Campolide<br>1070-312 Lisboa<br>N 38°43'56.84", W 9°9'35.74"<br>