[Users] How to get node from asynctreenode
Matt Priour
mpriour at kestrelcomputer.com
Mon Apr 11 18:12:15 CEST 2011
I don't see where you are defining any component with an id or 'tpnOrto'. Also when trying to retrieve nodes, it is better to use one of the node retrival methods rather than Ext.getCmp. I would suggest using either Ext.TreePanel.getNodeById, Ext.Node.findChild, or Ext.Node.findChildBy
Hope that helps.
Matt Priour
Kestrel Computer Consulting
From: Vidal, Antoni
Sent: Monday, April 11, 2011 6:31 AM
To: users at geoext.org
Subject: [Users] How to get node from asynctreenode
Hello list,
I would like to get a node from asynctreenode but I only get "undefined" and I can't use disable() function.
My code:
....
},{
"nodeType": "gx_layer",
"id": "toponimOrto",
"layer": "topoorto",
"text": "Toponimy"
},{
....
var foo = Ext.getCmp('tpnOrto');
console.info(foo);
Any suggestion?
Thank's in advance.
Antoni Vidal
Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat
--------------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110411/a13a3c05/attachment.htm
More information about the Users
mailing list