<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div>Hi,</div><div><br></div><div>I am using geoext 1.1 to display radio nodes in a tree. I would like to force the radio-node-checkbox to "false" when the layer visibility is also set to "false".<br></div><div><br></div><div>Below is the code out of my treepanel. <br></div><div><br></div><div>As you can see, the tree-node-radio-button sets the active layer, and at the same time changes the layer visibility to "true" . I now want to change the radionode to checked="false" when the layer visibility is "false" ( because we canīt use the wmsgetfeatureinfo on a node which isnīt visibile!)</div><div><br></div><div>??????HELP?????? marks the spot!<br></div><div><br></div><div><br> plugins: [<br> new
GeoExt.plugins.TreeNodeRadioButton({<br> listeners: { // listener for the radiotreenode<br> "radiochange": function(node) {<br> //alert(node.text + " is now the active layer.");<br> <br> activeNode = node;<br> if(activeNode ==
node)<br> {activeNode.select.defer(100, node);<br> featureInfo.activate();<br> selLayer = node.layer;<br> alert(node.text + "radio
node");<br> featureInfo.layers = [selLayer];<br> <br></div><div><span class="tab"> </span><span class="tab"> </span><span class="tab"> </span><span class="tab"> </span><span class="tab"> </span><span class="tab"> </span><span class="tab"> </span><span class="tab"> </span><span class="tab"> node.layer.setVisibility(true); // </span>changes the layer visibility to "true" </div><div><br>
}<br> else<br> {<br> featureInfo.deactivate();<br> <br>
}<br> }<br> }<br> })<br> ],<br>...</div><div>...other code...<br></div><div><br> listeners: { // listener for the treenode<br> 'checkchange': function(node, checked) {<br> if (checked === false) {</div><div><br> // set the radionode button to
checked="false" ??????HELP??????<br> <br> } <br> },</div><div><br></div><div><br></div><div>If anyone can see how I reference the node from here I would be most grateful,</div><div><br></div><div>yours,</div><div><br></div><div>Rob<br></div></div></body></html>