[Users] How to turn on/off a radio button in a layer tree nodeprogrammatically?
Valiquette,Francois [Montreal]
Francois.Valiquette at ec.gc.ca
Wed Mar 20 14:21:31 CET 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20130320/7ef43af3/attachment.htm
More information about the Users
mailing list