RadGrid - Pagination Problem - (Server Side Bind Breaking ClientSide Bind's Pagination

3 posts, 0 answers
  1. Marc
    Marc avatar
    12 posts
    Member since:
    May 2008

    Posted 29 Sep 2009 Link to this post

    On a majority of my forms I Pre-Bind RadGrids on the Server, but after the form is loaded I use WebServices (asmx) and Client side binding to update the RadGrid using Client Side Binding.

    My problem is Pagination does not working (or isn't visible) after a client side bind if the Radgrid was already bound to a list on the Server with a datasource <= to the radgrids pagesize. 

    For Example 
    My grid has a pagesize of 10. 
    It was bound to Six records on the Pageload.
    Then after the page has loaded the User proceeds to change the Search Criteria and invoke the WebService which returns 10 records with a Total Virtual count of 140. The 10 Records show up fine, column sorting works but no Pagingation is Visible.

    If what is bound on the Server is greater then the Radgrids PageSize pagination works for future Client side binds.

    Here is what my client side bind looks like:

    var tableView = $find('<%= grdWorkItems.ClientID %>').get_masterTableView();                           

    Have you guys seen this before am I missing something.


  2. Marc
    Marc avatar
    12 posts
    Member since:
    May 2008

    Posted 29 Sep 2009 Link to this post

    I came up with a workaround, basically I now no longer bind on the Server and instead do a client side bind in OnGridCreated. This works but I would rather have the form ready to go in the initial response.
  3. DevCraft R3 2016 release webinar banner
  4. Tsvetoslav
    Tsvetoslav avatar
    1823 posts

    Posted 02 Oct 2009 Link to this post

    Hi Marc,

    You are correct in observing that when the page size set on the server (due to binding the grid to a number of records smaller than the page size) is less than the page size the grid expects when binding on the client - the grid will not behave correctly.

    I have prepared a small sample demonstrating how you can achieve your scenario. Please, find it attached to this post.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top