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 : [email protected] [mailto:[email protected]] De la part de ?? Envoyé : 20 mars 2013 02:26 À : [email protected] 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 [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
