<br><font size=2 face="sans-serif">Set the layer visibility to false will
also uncheck the node. </font>
<br><font size=2 face="sans-serif">Perhaps it depends on how you built
your tree...</font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Valiquette,Francois
[Montreal]" <Francois.Valiquette@ec.gc.ca>@geoext.org</b> </font>
<br><font size=1 face="sans-serif">Envoyé par : users-bounces@geoext.org</font>
<p><font size=1 face="sans-serif">2013-03-20 09:21</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif"><chamme.chane@gmail.com>, <users@geoext.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [Users] How to turn on/off a radio
button in a layer tree nodeprogrammatically?</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3 color=#1f497d face="Calibri">Hello,</font>
<br><font size=3 color=#1f497d face="Calibri"> </font>
<br><font size=3 color=#1f497d face="Calibri">To check or uncheck the node
“i” of your tree you can use something similar to this :</font>
<br><font size=3 color=#1f497d face="Calibri"> </font>
<br><font size=3 color=#1f497d face="Calibri">layerTreeRoot.childNodes[i].ui.toggleCheck(false)</font>
<br><font size=3 color=#1f497d face="Calibri">or </font>
<br><font size=3 color=#1f497d face="Calibri">layerTreeRoot.childNodes[i].ui.toggleCheck(true)</font>
<br><font size=3 color=#1f497d face="Calibri"> </font>
<br><font size=3 color=#1f497d face="Calibri">And for the radio button
I don’t know but I think it should be something similar.</font>
<br><font size=3 color=#1f497d face="Calibri"> </font>
<br><font size=3 color=#1f497d face="Calibri">Good luck</font>
<br><font size=3 color=#1f497d face="Calibri"> </font>
<br><font size=3 color=#1f497d face="Calibri">François</font>
<br><font size=3 color=#1f497d face="Calibri"> </font>
<br><font size=3 color=#1f497d face="Calibri"> </font>
<br><font size=3 face="Tahoma"><b>De :</b> users-bounces@geoext.org [mailto:users-bounces@geoext.org]
<b>De la part de</b> ??<b><br>
Envoyé :</b> 20 mars 2013 02:26<b><br>
À :</b> users@geoext.org<b><br>
Objet :</b> [Users] How to turn on/off a radio button in a layer tree nodeprogrammatically?</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Times New Roman">Hello everyone:</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Times New Roman">I am learning GeoExt and trying
the example "Tree Node", the url of the example is "</font><a href=http://api.geoext.org/1.1/examples/tree.html target=_blank><font size=3 color=blue face="Times New Roman"><u>http://api.geoext.org/1.1/examples/tree.html</u></font></a><font size=3 face="Times New Roman">".</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Times New Roman">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.</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Times New Roman">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?</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Times New Roman">Thanks,</font>
<br><font size=3 face="Times New Roman">Chamme</font><tt><font size=2>_______________________________________________<br>
Users mailing list<br>
Users@geoext.org<br>
http://www.geoext.org/cgi-bin/mailman/listinfo/users<br>
</font></tt>
<br>
<br>
<br>