title: kendo paging issue on ajax request
body: <p>After an initial load, I am trying to filter the kendo grid using an ajax request because I am filtering based on many controls outside the grid. My request data is correct in newObj and the results I get from the server are correct.
  I am using this code.</p>
  
  <pre><code>$.ajax({
      url: 'Books/GetAll',
      type: "POST",
      async: false,
      data: JSON.stringify(newObj),
      dataType: "json",
      contentType: "application/json; charset=utf-8",
      success: function (returnValue) {
          var grid = $('#kBooks').getKendoGrid();
          grid.dataSource.data(returnValue.GridData);
          **grid.dataSource.totalPages(returnValue.TotalCount);**
          grid.refresh();
      },
      error: function (request, status, error) {
      }
  });
  </code></pre>
  
  <p>I get the proper data shown on the grid, but grid becomes no more pageable although I get returnValue.TotalCount as more than 1 page.
  I just need to know how to set the total pages value on the grid after setting the data.
  Thanks</p>