title: Jqgrid Get postData
body: <p>I would like to export only the data from jqgrid.</p>
  
  <p>So basically I already have a bound grid with data and I want to get the data as json string so I can call <code>BindGridModel(data)</code> later on and bind the data without going back to the server only from client side.</p>
  
  <p>how can I get data as json string so later on I can give it to the grid as data?</p>
  
  <p>this is my grid configuration:</p>
  
  <pre><code>function BindGridModel(data) {
      $('#jqgInventory').jqGrid({
          autowidth: true,
          caption: 'Inventory',
          datatype: 'json',
          forceFit: true,
          gridview: true,
          height: 500,
          hidegrid: false,
          ignoreCase: true,
          loadui: 'disable',
          pager: '#pager',
          mtype: 'post',
          rowNum: 25,
          shrinkToFit: true,
          url: '/MCI/Inventory/Inventory/GetIndexGridData',
          viewrecords: true,
          postData: {
              modelView: JSON.stringify(model),
              __RequestVerificationToken: $('[name="__RequestVerificationToken"]').val()
          },
          beforeRequest: function() {
              $('#gridScript').block();
          },
          beforeSelectRow: function(rowid, e) {
              return false;
          },
          gridComplete: function() {
              $('#lblVehicleCount').html($('#jqgInventory').getGridParam('records'));
              $('#gridScript').unblock();
              Inventory.modifyGridCellClick();
          },
          colModel: [
              {
              align: 'center',
              name: 'Select',
              label: 'SEL',
              title: true,
              width: 20,
              index: 'Select'},
          {
              align: 'left',
              name: 'Photo',
              hidden: false,
              label: 'PHOTO',
              stype: 'text',
              sortable: false,
              sorttype: 'text',
              title: true,
              width: 100,
              index: 'Photo'},
          {
              align: 'left',
              name: 'Information',
              hidden: false,
              label: 'INFO',
              stype: 'text',
              sortable: false,
              sorttype: 'text',
              title: true,
              width: 100,
              index: 'Information'},
          {
              align: 'right',
              name: 'Price',
              hidden: false,
              label: 'PRICE',
              stype: 'text',
              sortable: true,
              sorttype: function(cellValue) {
                  return CustomGridSortByIntegerAsString(cellValue);
              },
              title: true,
              width: 50,
              index: 'Price'},
          {
              align: 'right',
              name: 'Mileage',
              hidden: false,
              label: 'MILEAGE',
              stype: 'text',
              sortable: true,
              sorttype: function(cellValue) {
                  return CustomGridSortByIntegerAsString(cellValue);
              },
              title: true,
              width: 25,
              index: 'Mileage'},
          {
              align: 'right',
              name: 'Age',
              hidden: false,
              label: 'AGE',
              stype: 'text',
              sortable: true,
              sorttype: function(cellValue) {
                  return CustomGridSortByIntegerAsString(cellValue);
              },
              title: true,
              width: 50,
              index: 'Age'},
          {
              name: 'VehicleKey',
              hidden: true,
              label: 'VEHICLEKEY',
              width: 50,
              index: 'VehicleKey'}
          ],
          data: data
      });
  }
  </code></pre>