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

no paging GridViewRows under groups?

1 Answer 32 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brian Graves
Top achievements
Rank 1
Brian Graves asked on 04 Jun 2010, 01:29 AM
My paging works fine in my RadGridView until I drag and drop columns to apply grouping.  My pager still works to page through my groups.  However, after I expand one of my groups, it shows EVERYTHING under that group and doesn't use the paging that I set up in my RadDataPager.  Do I need to set up a special template for grouping or something like that to get the pager to display for my group items?

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 04 Jun 2010, 06:16 AM
Hello Brian Graves,

This behavior is by design.

When you want to page a grouped grid the behavior is too ambiguous: should the grid group only the items in the current page, or group all the items and have the pager split one group in several pages?

What should happen if the page size is set to 1 for example. Should this get only one record? Or only one group? In other words, there is no clear logic about paging a grouped grid, or grouping a paged grid if you prefer.

You can think of paging occurring first (i.e. get a "PageSize" number of entities from a DomainDataSource for example). After the data (i.e. page 1 containing 10 records) has "arrived" on the client grouping is performed over this and only this data. In other words, the grid is not aware of the large-scale picture -- it only knows about 10 records at a time, it does not know that this is part of a larger set of data residing on the server for example. That is why it is grouping what it currently has as its items source, which is page one containing the 10 records.

I hope this makes sense.

Best wishes,
Ross
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Brian Graves
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or