Set the layer visibility to false will also uncheck the node. Perhaps it depends on how you built your tree...
"Valiquette,Francois [Montreal]" <francois.valique...@ec.gc.ca>@geoext.org Envoyé par : users-boun...@geoext.org 2013-03-20 09:21 A <chamme.ch...@gmail.com>, <users@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-boun...@geoext.org [mailto:users-boun...@geoext.org] De la part de ?? Envoyé : 20 mars 2013 02:26 À : users@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@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users