[Users] How to expand node of TreePanel using a button
Vidal, Antoni
antoni.vidal at icc.cat
Thu Mar 24 14:41:51 CET 2011
Hello list,
I would like to expand a node of a TreePanel when user click on a button in toolbar.
Code of button:
dowldctrl = new OpenLayers.Control();
action = new GeoExt.Action({
control: dowldctrl,
tooltip: "Download",
id: 'infobtn',
map: map,
iconCls: 'dowldbutton',
toggleGroup: "tools",
toggleHandler : function(actionObj, checked) {
if(checked){
map.getControlsByClass("Click")[0].activate();
}else{
map.getControlsByClass("Click")[0].deactivate();
}
}
});
actions.push(action);
Any idea?
Thank's in advance.
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/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110324/41e1d3e9/attachment.htm
More information about the Users
mailing list