[Users] Radio Button in Sub-nodes (Treeview)...
Paul james
pauljame at gmail.com
Wed Oct 7 15:35:47 CEST 2009
Thanks Andreas!
Jumping to the last question..
I have that tree configuration :
{
id: 'Transporte',
text:
'Transporte',
children:
[
{
id: 'Rodoviario',
text: 'Rodoviario',
children:
[
{
nodeType: "gx_layer",
id: "RodoviaFederal",
layer: "Rodovia Federal",
isLeaf:
false,
loader: {
param: "LAYERS",
...
The checkbox is only generated in last level ( RodoviaFederal and sublayers)
... How can I generate checkbox for all levels? Using "checked" attribute,
it appers, but doest work ... Any idea?
Paul
On Wed, Oct 7, 2009 at 4:09 AM, Andreas Hocevar <ahocevar at opengeo.org>wrote:
> Paul james wrote:
> > About my other problem (Change sublayer label on treeview) ...
> > I tried with that :
> >
> > tree.on('beforeappend', function(tree, parent, node){
> > node.text = "test";
> > });
> >
> > It only changes the last child... Can you help me on that?
>
> I think so. Because the visual representation of the layer order is the
> other way around as the layer stack, nodes are inserted rather than
> appended. Try the following:
>
> function setText(tree, parent, node) {
> node.text = "test";
> }
> tree.on({
> beforeappend: setText,
> beforeinsert: setText
> });
>
> Regards,
> Andreas.
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20091007/3ad894e7/attachment.htm
More information about the Users
mailing list