title: Something like setCell for form edit in JqGrid
body: <p>Ok, I've been looking for a answer in alot of @Oleg 's answers  but I couldn't find anything.  I have this grid, where a can edit in line, in some fields, I'm working with autocomplete and when I select some item, I use setCell, to write the value in another field. My column model is something like this...</p>
  
  <pre><code>{ name: 'Label', index: 'Label', width: 100, align: 'Center', sorttype: "string",
      editable: true, editrules: { required: true },
      editoptions: {
          dataInit: function (elem) {
              $(elem).autocomplete({
                  autoFocus: true,
                  source: function (request, response) {
                      PageMethods.ObtLabels(request.term, function (data) {
                          var tiposCliente = (typeof data) == 'string' ?
                                             eval('(' + data + ')') : data;
                          response(tiposCliente);
                      }, fnLlamadaError);
                  },
                  minLength: 1,
                  select: function (event, ui) {
                      var rowid = $('#pendientes').getGridParam('selrow');
                      **jQuery('#pendientes').setCell(rowid, 'LabelId', ui.item.id);**
                  }
              });
          }
      }
  },
  </code></pre>
  
  <p>this work fine when edit and add inline but, when I want to add or edit a row with the Form, I can not write the value in another field. </p>
  
  <p>I don't know if my question is clear. I just want to write something in the "X" field, depending the opcion I chose in the "Y" field. All this using the Form.</p>
  
  <p>If someone can help me it would be great.</p>
  
  <p>Thanks a lot ! </p>
  
  <p>UPDATE AND SOLUTION: </p>
  
  <p>I Just add the next line to my code: </p>
  
  <p>$('input#LabelId').val(ui.item.id);</p>
  
  <p>And its work, with that I write in the LAbelId the selected item's value</p>
  
  <p>in the end el code for my column with autocomplete is something like this: </p>
  
  <pre><code>{ name: 'Label', index: 'Label', width: 100, align: 'Center', sorttype: "string",
      editable: true, editrules: { required: true },
      editoptions: {
          dataInit: function (elem) {
              $(elem).autocomplete({
                  autoFocus: true,
                  source: function (request, response) {
                      PageMethods.ObtLabels(request.term, function (data) {
                          var tiposCliente = (typeof data) == 'string' ?
                                             eval('(' + data + ')') : data;
                          response(tiposCliente);
                      }, fnLlamadaError);
                  },
                  minLength: 1,
                  select: function (event, ui) {
                      var rowid = $('#pendientes').getGridParam('selrow');
                      jQuery('#pendientes').setCell(rowid, 'LabelId', ui.item.id);
                      **$('input#LabelId').val(ui.item.id);**
                  }
              });
          }
      }
  },
  </code></pre>