[Users] How to programmatically change the gx_overlayrcontainers text string in the tree

22 views
Skip to first unread message

Robert Buckley

unread,
Mar 15, 2012, 9:30:42 AM3/15/12
to us...@geoext.org
I´ver tried this...


var treeConfig = [{
        nodeType: "gx_baselayercontainer",
        id: "gx_baselayercontainer",
        hidden:true
    }, {....etc.etc

Ext.get('gx_baselayercontainer').set({text: 'test'}); 

This doesn´t work....cannot call method 'set' of null???

how can I set the text then?


yours with thanks,

Rob






Robert Buckley

unread,
Mar 16, 2012, 5:08:16 AM3/16/12
to us...@geoext.org

Betreff: Re: [Users] How to programmatically change the gx_overlayrcontainers text string in the tree:SOLVED

It was a stupid question....I just had to use 

text: "string"

...in the layer config

yours,
Rob




Von: Robert Buckley <robertd...@yahoo.com>
An: "us...@geoext.org" <us...@geoext.org>
Gesendet: 14:30 Donnerstag, 15.März 2012
Betreff: [Users] How to programmatically change the gx_overlayrcontainers text string in the tree
_______________________________________________
Users mailing list
Us...@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users




truongxuan quang

unread,
Mar 16, 2012, 5:50:37 AM3/16/12
to Robert Buckley, Users
Hi
I think it should be 

var treeConfig1 =[
{
nodeType: "gx_baselayercontainer",
text: "Base Layers",
expanded: true,
leaf: false,
loader: {
param: "LAYERS"
}
},
text: "Search Functionality",
expanded: false,
children: [
       {
            nodeType: 'gx_layer',
     text: 'List of Station',
            layer: Layer_Station,
              icon: '../images/draw_polygon.png',
qtip: "Map of Stations"
        },
.............etc
]
},
text: "Map",
expanded: false,
children: [ etc.....




From: Robert Buckley <robertd...@yahoo.com>
To: "us...@geoext.org" <us...@geoext.org>
Sent: Friday, March 16, 2012 10:08 AM
Subject: [Users] WG: How to programmatically change the gx_overlayrcontainers text string in the tree:SOLVED

Robert Buckley

unread,
Mar 16, 2012, 6:23:31 AM3/16/12
to us...@geoext.org
your right...I meant the treeconfig not the layer config!

cheers,
Rob


Von: truongxuan quang <truongx...@yahoo.com>
An: Robert Buckley <robertd...@yahoo.com>
CC: Users <us...@geoext.org>
Gesendet: 10:50 Freitag, 16.März 2012
Betreff: Re: [Users] WG: How to programmatically change the gx_overlayrcontainers text string in the tree:SOLVED
Reply all
Reply to author
Forward
0 new messages