title: jqgrid dropdowns pass value of another column
body: <p>I am using <code>jqGrid</code> to show data in tabular format, using <code>JSP</code> and <code>Servlet</code>.</p>
  
  <p>I have two <em>dependent drop-downs</em> to show.</p>
  
  <ol>
  <li>Show State</li>
  <li>Show City</li>
  </ol>
  
  <p>Following is relevant code:</p>
  
  <pre><code>colNames:['User ID', 'Name','State','City'], 
  colModel:[
  {name:'USERID',index:'USERID',....},
  {name:'NAME',index:'NAME',....},
  {
  name:'STATE',
  index:'STATE',
  width:125,
  sortable:true,
  edittype:"select",
  editoptions: {
      maxlength: 15,
      dataUrl: 'MYServlet?action=getState',
      dataEvents :[{ 
          type: 'change',
          fn: function(e) {
              var thisval = $(e.target).val();
              $.post('MyServlet?action=getCity='+thisval,
              function(data){
                  var res = $(data).html();
                  $("#STATE").html(res);
              });
          }
      }]
  }
  },
  {
      name:'CITY',
      index:'CITY',
      width:125,
      sortable:true,
      editable:true,
      edittype:"select",
      editoptions:{maxlength: 50 , value: 'Select:Select'}
  }
  ],
  </code></pre>
  
  <p>Above code is working fine for <em>dependent drop-downs</em>. Now I want to pass <code>USERID</code> with <code>datUrl</code>  in <code>editoptions</code> of <code>STATE</code> column. like </p>
  
  <pre><code>dataUrl: 'MYServlet?action=getState&amp;userid='+userid
  </code></pre>
  
  <p>But I am not able to get <code>USERID</code> in <code>dataUrl</code>.</p>
  
  <p>So any suggestions will be appreciated.</p>