This is a migrated thread and some comments may be shown as answers.

Paging not working with RadGrid and GroupByExpressions

3 Answers 75 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 27 Sep 2012, 01:29 PM
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?

3 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 01 Oct 2012, 04:39 PM
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.
0
Brandon
Top achievements
Rank 1
answered on 02 Oct 2012, 12:58 PM
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.
0
Angel Petrov
Telerik team
answered on 03 Oct 2012, 03:28 PM
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.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Brandon
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Brandon
Top achievements
Rank 1
Share this question
or