[Users] How to get node from asynctreenode
Vidal, Antoni
antoni.vidal at icc.cat
Tue Apr 12 18:34:48 CEST 2011
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:mpriour at kestrelcomputer.com]
Enviat: martes, 12 de abril de 2011 16:18
Per a: Vidal, Antoni
A/c: users at geoext.org
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110412/8af2c7a9/attachment.htm
More information about the Users
mailing list