title: JQGrid: Dependency Dropdown in dataEvents Change
body: <p>I am developing a grid that contains a list of permits per module.</p>
  
  <p>What I want is to validate every 2 events when a change is made in a combobox in a column. I'm using 1 and 0 for activating / deactivating</p>
  
  <p>The first case: If I active "write", "modify", "delete" or "print" means that self-select "read"</p>
  
  <p><img src="https://i.stack.imgur.com/75Laq.gif" alt="enter image description here"></p>
  
  <p>The second case is the opposite: If you disable "Read" will turn off automatically "write", "modify", "delete" and "print"</p>
  
  <p><img src="https://i.stack.imgur.com/gKYR1.gif" alt="enter image description here"></p>
  
  <p>Researching I found the option to use functions of input events:</p>
  
  <pre><code>{"name":"read",
  "index":"read",
  "width":48,
  "resizable":false,
  "editable":true,
  "edittype":"select",
  "editoptions":{
    "value":"0:0;1:1",
    "dataEvents":[{
                 "type":"change",
                  "fn":function(e){
                       if($(e.target).val() == '0')
                       {
                       // actions here...
                       }
                   }
                 }]
   }
  }
  </code></pre>
  
  <p>You can change the elements of the other columns ... by row?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>my solution:</p>
  
  <pre><code>$('tr.jqgrow select[name*="read"]').live("change",function()
  {   
      if($(this).val() === '0') $(this).closest('tr.jqgrow').find('select.editable').not(this).find('option:first-child').attr("selected", "selected");
  });
  
  $('tr.jqgrow select[name!="read"]').live("change",function()
  {
      $(this).closest('tr.jqgrow').find('select[name*="read"]').find('option:last-child').attr("selected", "selected");
  });
  </code></pre>