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>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Hugo</b> <span dir="ltr"><<a href="mailto:hfpmartins@gmail.com" target="_blank">hfpmartins@gmail.com</a>></span><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" target="_blank">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><font color="#888888"><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>
</font></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>