title: jqgrid form editing editoptions select ajax add parameter
body: <p>i'm trying to build a select element in the form editing jqgrid by calling an ajax webmethod (asp.net). </p>
  
  <p>Everythings work great if I call a method without parameter. It doesn't work if I try to call a webmethod expecting a string parameter:</p>
  
  <p>this is an extract of the code:</p>
  
  <pre><code>ajaxSelectOptions: { type: "POST", contentType: 'application/json; charset=utf-8', },
  colNames: ['City', 'State'],
  colModel: [
  { 
      name: 'City', 
      index: 'City', 
      align: "center", 
      width: 80, 
      searchoptions: { sopt: ['eq', 'ne', 'cn']} ,
      edittype: 'select',
      editable: true, 
      editrules: { required: true },
      editoptions: { 
          dataUrl: '&lt;%# ResolveUrl("~/Service/Domain/ServiceGeographic.asmx/GetCityByState") %&gt;',
          buildSelect: function (data) {
          var retValue = $.parseJSON(data);
          var response = $.parseJSON(retValue.d);
  
          var s = '&lt;select id="customer_City" name="customer_City"&gt;';
  
          if (response &amp;&amp; response.length) {
              for (var i = 0, l = response.length; i &lt; l; i++) {
              s += '&lt;option value="' + response[i]["Id"] + '"&gt;' + response[i]["Descrizione"] + '&lt;/option&gt;';
              }
          }
  
          return s + "&lt;/select&gt;";
          }                        
      }
  },
  ...
  </code></pre>
  
  <p>where can i set the parameter to send to the GetCityByState webmethod?</p>
  
  <p><strong>EDIT</strong>: I did not highlight that I'm using POST to call webmethod. Even if i tried as <a href="https://stackoverflow.com/questions/4469650/jqgrid-incorrect-select-drop-down-option-values-in-edit-box/4480184#4480184">Oleg suggested on this link</a>, it doesn't work :(</p>