title: Paging not working when loadonce:true in jqGrid
body: <p>In jqGrid have property <strong>loadonce:true</strong> then i am getting only first page records. how can i get second and third page records.</p>
  
  <p><strong>code:</strong></p>
  
  <pre><code>$(function () {
  
          $("#pendingAppgrid").jqGrid({
              colNames: ['Name', 'Email'],
              colModel: [
                          { name: 'Name', index: 'Name', sortable: true, align: 'left', width: '200',
                              editable: false, edittype: 'text',search:true
  
                          },
  
                           { name: 'Email', index: 'Email', sortable: false, align: 'left', width: '200',
                               editable: false, edittype: 'text',search:true
                           },  
                    ],
              pager: jQuery('#pager'),
              sortname: 'Name',
              rowNum: 15,
              rowList: [10, 20, 25],
              sortorder: "desc",
              height: 345,
              ignoreCase: true,
              viewrecords: true,
              rownumbers: true,
              caption: 'Pending Approvals',
              width: 660,
              url: "@Url.Content("~/Home/PendingApprovals")",
              datatype: 'json',
              mtype: 'GET',
              loadonce: true
          })
          jQuery("#pendingAppgrid").jqGrid('filterToolbar', { searchOnEnter: true, enableClear: false });
  
      });
  </code></pre>
  
  <p><strong>Server code</strong></p>
  
  <pre><code>public ActionResult PendingApprovals(int page, int rows, string sidx, string sord)
          {
  
              //return View(GetPendingApprovals());
              int currentPage = Convert.ToInt32(page) - 1;
              int totalRecords = 0;
              List&lt;ViewModels.Channel.UserChannels&gt; lTemChannel = new List&lt;ViewModels.Channel.UserChannels&gt;();
              List&lt;ViewModels.Channel.UserChannels&gt; lstChannel = new List&lt;ViewModels.Channel.UserChannels&gt;();
              lTemChannel = GetPendingApprovals();
              foreach (ViewModels.Channel.UserChannels cha in lTemChannel)
              {
                  ViewModels.Channel.UserChannels channelWithLogo = new ViewModels.Channel.UserChannels();
                  channelWithLogo.ID = cha.ID;
                  channelWithLogo.Name = cha.Name;
                  channelWithLogo.Email = cha.Email;
  
                  lstChannel.Add(channelWithLogo);
              }
              totalRecords = lstChannel.Count;
              var totalPages = (int)Math.Ceiling(totalRecords / (float)rows);
                  lstChannel = lstChannel.ToList&lt;ViewModels.Channel.UserChannels&gt;();
  
              IPagedList&lt;ViewModels.Channel.UserChannels&gt; ilstChannel;
              switch (sord)
              {
                  case "desc":
                      ilstChannel = lstChannel.OrderByDescending(m =&gt; m.Name).ToPagedList(page, rows);
                      break;
                  case "asc":
                      ilstChannel = lstChannel.OrderBy(m =&gt; m.Name).ToPagedList(page, rows);
                      break;
                  default:
                      ilstChannel = lstChannel.OrderBy(m =&gt; m.Name).ToPagedList(page, rows);
                      break;
              }
  
              var data = ilstChannel;
  
              var jsonData = new
              {
                  total = totalPages,
                  page,
                  records = totalRecords,
  
                  rows = (from m in data
                          select new
                          {
  
                              id = m.ChannelID,
                              cell = new object[]
                             {
                                 m.Name,
                                 m.Email
                             }
                          }).ToArray()
              };
              return Json(jsonData, JsonRequestBehavior.AllowGet);
          }
  </code></pre>
  
  <p>Here i am getting only first page records. i have more pages. search functionality working fine. problem is i am only first page records. not getting other pages records. how can i get another page records. Please help this.</p>