[Users] How to turn on/off a radio button in a layer tree nodeprogrammatically?
Steve.Toutant at inspq.qc.ca
Steve.Toutant at inspq.qc.ca
Wed Mar 20 14:28:11 CET 2013
Set the layer visibility to false will also uncheck the node.
Perhaps it depends on how you built your tree...
"Valiquette,Francois [Montreal]" <Francois.Valiquette at ec.gc.ca>@geoext.org
Envoyé par : users-bounces at geoext.org
2013-03-20 09:21
A
<chamme.chane at gmail.com>, <users at geoext.org>
cc
Objet
Re: [Users] How to turn on/off a radio button in a layer tree
nodeprogrammatically?
Hello,
To check or uncheck the node ?i? of your tree you can use something
similar to this :
layerTreeRoot.childNodes[i].ui.toggleCheck(false)
or
layerTreeRoot.childNodes[i].ui.toggleCheck(true)
And for the radio button I don?t know but I think it should be something
similar.
Good luck
François
De : users-bounces at geoext.org [mailto:users-bounces at geoext.org] De la part
de ??
Envoyé : 20 mars 2013 02:26
À : users at geoext.org
Objet : [Users] How to turn on/off a radio button in a layer tree
nodeprogrammatically?
Hello everyone:
I am learning GeoExt and trying the example "Tree Node", the url of the
example is "http://api.geoext.org/1.1/examples/tree.html".
In the example, the "Overlays" subtree hosted in the Layers panel contains
3 layer nodes each with a check box and a radio button, users can click on
one of radio buttons to activate a layer, and through checking on/off
check boxes, we can turn on/off the display of a layer. These functions
are excellent.
Now the question is, I want to turn on/off a radio button in the treenode
programmatically, also check on/off check boxs programmatically. Could
anyone provide me some hints to achieve the goal? Do I need to examine
some source code of the library?
Thanks,
Chamme_______________________________________________
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/20130320/b8e1d936/attachment.htm
More information about the Users
mailing list