<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Rob,<br>
    <br>
    try to use <br>
    <br>
    <tt>node.disable();</tt><br>
    <br>
    where <tt>node</tt> could for example be determined via <tt>getNodeById(
      String id )</tt> [1] on your tree panel.<br>
    <br>
    Best regards,<br>
    Chris<br>
    <br>
    <br>
    [1] <a
href="http://docs.sencha.com/ext-js/3-4/#%21/api/Ext.tree.TreePanel-method-getNodeById">http://docs.sencha.com/ext-js/3-4/#!/api/Ext.tree.TreePanel-method-getNodeById</a>
    <div class="moz-signature">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <style type="text/css">
        #signature {
            color: #333 !important;
            font-family: monospace;
                        font-size: 12px;
            padding: 10px;
            line-height: 1.5em;
        }
        #highlight-container {
            padding: 5px;
            width: 450px;
            margin: 30px 0;
            border-width: 0px 0 0px 0;
            border-right-width: 0;
            border-left-width: 0;
            border-style: dotted;
            border-color: #333;
        }
        #signature a,
        #signature a:link,
        #signature a:visited,
        #signature a:hover,
        #signature a:active {
            color: darkblue !important;
        }
        #signature address {
            font-style: normal;
        }
        #col-container {
            width: 550px;
        }
        #col-1 {
            width: 180px; float: left;
        }
        #col-2 {
            width: 320px; float: left;
        }
        #col-clear {
            clear: both; padding-top: 30px;
        }
        #signature img {
            margin-top:10px;
        }
        #col-container p,
        #col-container address {
            margin: 4px 0 0 0;
        }
        #signature .no-margin {
            margin: 0;
        }
        #highlight {
            font-weight: bold;
        }
        </style>
      <div id="signature">
        <div id="col-container"><br>
        </div>
      </div>
    </div>
    <br>
    Am 15.11.2011 13:35, schrieb Robert Buckley:
    <blockquote
      cite="mid:1321360552.31162.YahooMailNeo@web24106.mail.ird.yahoo.com"
      type="cite">
      <div style="color: rgb(0, 0, 0); background-color: rgb(255, 255,
        255); font-family: arial,helvetica,sans-serif; font-size: 10pt;">
        <div style="font-family: arial,helvetica,sans-serif; font-size:
          10pt;">Hi,</div>
        <div style="font-family: arial,helvetica,sans-serif; font-size:
          10pt;"><br>
        </div>
        <div style="font-family: arial,helvetica,sans-serif; font-size:
          10pt;">I would like to disable the tickbox next to a layer
          when the user zooms out greater than zoom level 12. This will
          tell the user that the layer is deactivated.</div>
        <div style="font-family: arial,helvetica,sans-serif; font-size:
          10pt;">At the moment I have the following code which simple
          sets the visibility , but when the zoom level is 11, the tick
          box is still white and can still be ticked on and off.</div>
        <div style="font-family: arial,helvetica,sans-serif; font-size:
          10pt;"><br>
        </div>
        <div style="font-family: arial,helvetica,sans-serif; font-size:
          10pt;"><br>
        </div>
        <div style="font-family: arial,helvetica,sans-serif; font-size:
          10pt;">here is my code to set the visibility of the layer</div>
        <div style="font-family: arial,helvetica,sans-serif; font-size:
          10pt;"><br>
        </div>
        <div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">map.events.on({ "zoomend": function
              (e) {</font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">&nbsp; &nbsp; &nbsp; if (this.getZoom() &gt; 12) {<span
                class="Apple-tab-span" style="white-space: pre;"> </span></font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">&nbsp; &nbsp; &nbsp;
              layer_Flurbloeke.setVisibility(true);</font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">&nbsp; &nbsp; &nbsp;
              layer_Flurbloeke.icon='../images/add.png';</font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">&nbsp; &nbsp; &nbsp;
              layer_ertrag.setVisibility(true);<span
                class="Apple-tab-span" style="white-space: pre;"> </span>
              &nbsp;<span class="Apple-tab-span" style="white-space: pre;"> </span></font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">&nbsp; &nbsp; &nbsp; }</font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">&nbsp; &nbsp; &nbsp; else {</font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">&nbsp; &nbsp; &nbsp;
              layer_Flurbloeke.setVisibility(false);</font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">&nbsp; &nbsp; &nbsp;
              layer_ertrag.setVisibility(false);</font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">&nbsp; &nbsp; &nbsp; }</font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">&nbsp; &nbsp; &nbsp; }//end function (e)</font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">&nbsp; &nbsp; }); //end map.events.on&nbsp;</font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2"><br>
            </font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2"><br>
            </font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">Thanks for any help,</font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2"><br>
            </font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2">Rob</font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2"><br>
            </font></div>
          <div><font class="Apple-style-span" face="arial, helvetica,
              sans-serif" size="2"><br>
            </font></div>
        </div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>