title: Server side pagination in JqGrid (no grid pager parameters)
body: <p>I have a jqGrid which requires server side pagination, I have to pass some search criteria's along with the request (POST), On Initial call I am able to fetch the results, but I am not able to find a way to send the grid's current page, index and size required for server side pagination as <a href="http://yassershaikh.com/how-to-use-jqgrid-with-asp-net-mvc/" rel="nofollow">mentioned here</a> </p>
  
  <p>I used fiddle and the network tab to check if my request is generating the additional contents as mentioned in the above post, but couldn't find any</p>
  
  <p>Below is my code</p>
  
  <p><strong>JQGrid</strong></p>
  
  <pre><code>        $("#list").jqGrid({
          serializeGridData: function () {
              return {'data': JSON.stringify($('#searchInfo').serializeObject()) };
          },
          url: '/SearchUsers/SearchResult',
          mtype: 'POST',
          datatype: "json",
          jsonReader: {
              page: "currentPage",
              total: "totalPages",
              records: "total",
              root: "rows",
              cell: "",
              id: "0"
          },
          contentType: 'application/json; charset=utf-8',
          rowNum: 10,
          pager: '#pager',
          sortname: 'FirstName',
          sortorder: "asc",
          autowidth: true,
          height: 'auto',
          shrinkToFit: false,
          forceFit: true,
          ignoreCase: true,
          sortable: false,
          colModel: [
              { label: 'ID', name: 'ID', align: "center", key: true, hidden: true, frozen: true },
              { label: 'First Name', name: 'FirstName', align: "left", sopt: ['cn'], frozen: true},
              { label: 'Last Name', name: 'LastName', align: "left", sopt: ['cn']},
              { label: 'Email Address', name: 'EmailAddress', align: "left", sopt: ['cn'] }
          ],
          viewrecords: true, // show the current page, data range and total records on the toolbar
          emptyrecords: "No records to view.",
          rowattr: Searchusers.RowFormatter,
      }).css("font-family", "Arial Narrow");
      $('#list').jqGrid('filterToolbar', { defaultSearch: 'cn' });
      $("#list").trigger("reloadGrid");
      $("#list").jqGrid('setFrozenColumns');
      $(".ui-jqgrid-titlebar-close").remove();
  </code></pre>
  
  <p><strong>My Json Data</strong></p>
  
  <p>{<br>
     "totalPages":"4",
     "currentPage":"1",
     "total":"35",
     "rows":[<br>
        {<br>
           "ID":"1",
           "FirstName":"a",
           "LastName":"a",
           "EmailAddress":"ab@cd-sg.com",
        },
        {<br>
           "ID":"2",
           "FirstName":"s",
           "LastName":"k",
           "EmailAddress":"sk@co.com",
        },
        {<br>
           "ID":"3",
           "FirstName":"K",
           "LastName":"G",
           "EmailAddress":"abc@abc-sg.com",
        },
        {<br>
           "ID":"4",
           "FirstName":"as",
           "LastName":"asd",
           "EmailAddress":"asd@l.co",
        },
        {<br>
           "ID":"5",
           "FirstName":"K",
           "LastName":"B",
           "EmailAddress":"KB@FB.com",
        }
  .
  .
  .
  30 more records
     ]
  }</p>
  
  <p>Any help?</p>