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 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>