title: jqGrid: sending edit data
body: <p>I'm trying to use form editing on jqgrid.  When the data is sent to the webserver, I want an extra field sent in the get/post data.</p>
  
  <p>It sounds like editData is what I want to use.  How do I hook this into the navbar?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function(){ 
          if (jQuery('#ReferenceGrid').attr('role') == 'undefined' || jQuery('#ReferenceGrid').attr('role') == null) {
              var lastSel;
              jQuery('#ReferenceGrid').jqGrid({
                  url: '/PlannedWorkOrder/Items/',
                  datatype: 'json',
                  postData: { referenceNumber: $('#reference').text() },
                  colNames: ['Platinum Part Number', 'Quantity'],
                  colModel: [
                      { name: 'PlatinumPartNumber', index: 'PlatinumPartNumber', width: 300, sortable: false, editable: true },
                      { name: 'Quantity', index: 'Quantity', width: 300, sortable: false, editable: true, editrules:{integer: true}  },
                  ],
                  jsonReader: {
                      cell: "",
                      id: "PlatinumPartNumber",
                      repeatitems: false
                  },
                  search:false,
                  viewrecords: true,
                  height: '100%',
                  sortorder: 'desc',
                  caption: 'Details',
                  altRows: true,
                  pager : '#gridpager',
                  pgbuttons: false,
                  pginput: false,
                  pgtext: false,
                  viewrecords: false,
                  editurl: '/PlannedWorkOrder/Item/'
              })
              jQuery("#ReferenceGrid").navGrid('#gridpager', { add: true, edit: true, search: false });
          }
          else {
              $("#ReferenceGrid").setGridParam({ postData: { firstName: $('#Reference').val(), lastName: $('#Reference').val() } });
              $("#ReferenceGrid").trigger("reloadGrid")
          }
      });
  
  &lt;/script&gt;
  </code></pre>