Paging not working with RadGrid and GroupByExpressions

Thread is closed for posting
4 posts, 0 answers
  1. Brandon
    Brandon avatar
    2 posts
    Member since:
    Sep 2012

    Posted 27 Sep 2012 Link to this post

    I'm having an issue where I'm using a RadGrid that has GroupByFields on the .ascx.  I'm using customPaging, and the data comes back correctly and is grouped correctly on the first page, but when I try to navigate to another page it does not bring back any results.  I have verified that there are more results beyond the first page, and that the data is still there after the page is clicked.  Any ideas?
  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 01 Oct 2012 Link to this post

    Hello Brandon,

    When using custom paging you should implement code logic which to extract merely a fixed number of records from the grid source and present them in the grid structure. You also have to define the total number of records in the grid source and set the VirtualItemCount property of the MasterTableView/GridTableView. Thus the grid "understands" that the data source contains the specified number of records and it should fetch merely part of them at a time to execute requested operation.

    All the best,
    Angel Petrov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brandon
    Brandon avatar
    2 posts
    Member since:
    Sep 2012

    Posted 02 Oct 2012 Link to this post

    The virtual item count is set every time, that's not the issue.  When I remove the GroupByFields on the .ascx page, the paging works fine.  The issue lies somewhere in how the groupbyfields work.
  5. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 03 Oct 2012 Link to this post

    Hello Brandon,

    Could you confirm that you have implemented a logic to extract a fixed number of records that would be later on shown in the grid? For a more clear view of how to implement custom paging with grouping I suggest that you take a look at this demo.

    Kind regards,
    Angel Petrov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top