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 <[email protected]>
To: "[email protected]" <[email protected]> 
Sent: Friday, March 16, 2012 10:08 AM
Subject: [Users] WG: How to programmatically change the gx_overlayrcontainers 
text string in the tree:SOLVED
 



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 <[email protected]>
An: "[email protected]" <[email protected]> 
Gesendet: 14:30 Donnerstag, 15.März 2012
Betreff: [Users] How to programmatically change the gx_overlayrcontainers text 
string in the tree
 

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






_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users





_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to