[Users] Tree Node with children using Radio Button plugin
Hugo
hfpmartins at gmail.com
Wed Mar 30 18:56:26 CEST 2011
Hello all,
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:
var LayerNodeUI = Ext.extend(GeoExt.tree.LayerNodeUI, new
GeoExt.tree.TreeNodeUIEventMixin());
var sessao2LayerNode = new GeoExt.tree.LayerNode({
layer: ppsessao2,
leaf: true,
loader: {
baseAttrs: {
radioGroup: 'theme',
uiProvider: 'layernodeui'
}
}
});
var forunspp = new GeoExt.tree.LayerNode({
layer: locaisPP
});
var session2Node = new Ext.tree.TreeNode({
text: '2º Fórum',
id: 'session2node',
expanded: false,
expandable: true
});
var layerRoot = new Ext.tree.TreeNode({});
var layerTree = new Ext.tree.TreePanel({
title: 'Temas',
layout: 'fit',
root: layerRoot,
rootVisible: false,
loader: new Ext.tree.TreeLoader({applyloader: false}),
enableDD: false,
autoScroll: true,
expanded: true,
border: true,
plugins: [
new GeoExt.plugins.TreeNodeRadioButton({
listeners: {
'radiochange': function(node) {}
}
})
],
loader: new Ext.tree.TreeLoader({
applyLoader: false,
uiProviders: {
'layernodeui': LayerNodeUI
}
})
});
layerRoot.appendChild(forunspp);
layerRoot.appendChild(sessao2LayerNode);
With this code the parent node is filled with two layers but, however, both
of them are rendered with the checkbox only.
Is it possible to load the second and only the second layer with a radio
button?
Thanks in advance.
Kind regards,
Hugo
--
Hugo Martins
LabNT - ISEGI UNL
Campus de Campolide
1070-312 Lisboa
N 38°43'56.84", W 9°9'35.74"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110330/1223f156/attachment.htm
More information about the Users
mailing list