Hi again,
Ive tryed your suggestions without success. Next I've tryed this:
var foo = Ext.getCmp('lyrsTree').root; //gets the root node
var foo2 = foo.childNodes[1].attributes.children[9];
// Firebug shows properties of object (node) but only initialized by
application: icon, id, layer, nodeType, qTip and text.
foo2.disable();
Here's the error: foo2.disable is not a function
I don't understand at all...
Antoni Vidal
Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya
<http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392>
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat <http://www.icc.cat/>
De: Matt Priour [mailto:[email protected]]
Enviat: martes, 12 de abril de 2011 16:18
Per a: Vidal, Antoni
A/c: [email protected]
Tema: Re: [Users] How to get node from asynctreenode
Try:
....
var foo = Ext.getCmp('lyrsTree'); //gets the tree panel
var foo2 = foo.getNodeById('tpnOrto'); //uses the tree panel to get the node of
interest
--or--
var foo = Ext.getCmp('lyrsTree').root; //gets the root node
var foo2 = foo.findChild('id','tpnOrto',true); //uses the root node to get the
node of interest
Matt Priour
Kestrel Computer Consulting
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users