title: MVC3 razor Webgrid paging and sorting with more than 2000 records
body: <p>I am using a webgrid similar to the one mentioned <a href="https://stackoverflow.com/questions/4342578/razor-webgrid-ajax-paging-and-sorting">here</a></p>
  
  <pre><code>@{
      var grid = new WebGrid(canPage: true, rowsPerPage: ThisController.PageSize, canSort: true, ajaxUpdateContainerId: "grid");
      grid.Bind(Model.Employees, rowCount: Model.TotalRecords, autoSortAndPage: false);
      grid.Pager(WebGridPagerModes.All);
      @grid.GetHtml(htmlAttributes: new { id="grid" },
          columns: grid.Columns(
              grid.Column(format: (item) =&gt; Html.ActionLink("Edit", "Edit", new { EmployeeID = item.EmployeeID })),
              grid.Column("FullName"),
              grid.Column("Title")
          ));
  }
  </code></pre>
  
  <p>But in my case I am expecting more than 2000 records ,I want to load only 50 records to be loaded on each page,so that the page will load faster. How can I ensure that only first 50 records are loaded when the page gets loaded.and when my user clicks page2 I want to load the next 50 set of records and so on.
  Any of you faced anything similar,please suggest me with some sample code</p>