Hi, the Ext.tree.TreeNode has a setIconCls method. This should get you there.
Andreas. On Fri, Jul 8, 2011 at 12:00 PM, brad <b...@numaps.com.au> wrote: > Andreas, > > Ok I understand. I currently have a loader wheel running using > loadstart/loadend but I would like to control the icon at the tree node. I > have found that you can change the default image at the node level with > iconCls: 'my image class'. However, I can't figure out how to change the > className under program control. > > For example, I can place a listener on the treePanel which allows me to > interrogate the node selected ('checkchange':function(node)(...)) whenever a > checkbox is clicked. However, inside this function when I look at the node's > iconCls its 'undefined' and yet there is an iconCls set for each node in the > tree - either the default one or one that I set. So without access to the > iconCls for a node I can't see how I can use the loadstart/Loadend to > control the node's image className? > > There must be something I'm missing here??? > > Cheers, Brad.... > > -----Original Message----- > From: andreas.hoce...@gmail.com [mailto:andreas.hoce...@gmail.com] On Behalf > Of Andreas Hocevar > Sent: Friday, 8 July 2011 5:15 PM > To: brad > Cc: users@geoext.org > Subject: Re: [Users] GeoExt.tree problem > > Hi, > > there is no way to get this loading throbber with just GeoExt. The > JSON tree loader in GeoExt has this throbber, spinning until the JSON > response is turned into layer nodes. > > It is, however, possible to achieve this on the application level by > registering for the OpenLayers Map's loadstart and loadend events. > > Andreas. > > On Fri, Jul 8, 2011 at 7:50 AM, brad <b...@numaps.com.au> wrote: >> List, >> >> >> >> I have seen GeoExt apps that have a small animated gif spin on the layer >> nodes. I cannot see how to activate this. The examples also do not have >> spinning layer load wheels? Is there something i need to configure to get >> this load wheel operating. >> >> >> >> My nodes look like this: >> >> >> >> nodeType: "gx_layer", >> >> layer : “layer 1”, >> >> text : “my layer name”, >> >> isLeaf : true, >> >> disabled : false >> >> >> >> Cheers, >> >> >> >> Brad.... >> >> _______________________________________________ >> Users mailing list >> Users@geoext.org >> http://www.geoext.org/cgi-bin/mailman/listinfo/users >> >> > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > > > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users