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

[Solved] Repopulate RadGrid on grouping

4 Answers 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sim
Top achievements
Rank 1
Sim asked on 16 Jul 2013, 03:52 PM
H there,

I'm new to telerik controls and still trying to work out some of the fundamentals. As I understand it, when both grouping and paging are applied to a RadGrid, pages become "fixed", i.e. grouping records on a page will reduce the number of records that page holds to the new reduced number of visible records, rather than pulling in records from the next page to fill the remaining slots, or even including records that spilled over onto the next page in the group.

Does anyone know if it is possible to override this default behaviour, and get the grid to rebind after a grouping has been applied so that the pages are updated accordingly? 

4 Answers, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 19 Jul 2013, 07:34 AM
Hello Sim,

I am not sure I understand you correctly. When grouping the RadGrid and the paging is enabled the RadGrid have the same number of data records. I have created an image and numbered the items when grouped. The page size is 20 and the number of records on the page are 20. You could test the scenario on the demo here.

Could you please provide more in depth information on your scenario and requirements so we could advice you with the best possible solution.

Regards,
Antonio Stoilkov
Telerik
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 the blog feed now.
0
Sim
Top achievements
Rank 1
answered on 22 Jul 2013, 08:04 AM
Hi Antonio,

Perhaps I've not used the correct term. When I said "grouping" I meant the feature that allows you to collapse groups (e.g. in your demo grid an example of what I mean would be when you collapse the Argentina records so that you only have that top "grouping" row showing). In such a case it seems that the RadGrid resizes itself, making itself smaller by the number of rows that have been made "invisible". 

I was wondering if it were possible to instead update the RadGrid in such an instance so that the number of rows that have been made "invisible" are pulled from the next page.
0
Antonio Stoilkov
Telerik team
answered on 25 Jul 2013, 05:40 AM
Hi Sim,

Unfortunately, the desired functionality could not be achieved. The implementation of the RadGrid grouping does not allow showing more items than the current page size and their visibility and expand\collapse state is not relevant to the number of loaded records.

Regards,
Antonio Stoilkov
Telerik
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 the blog feed now.
0
Sim
Top achievements
Rank 1
answered on 25 Jul 2013, 08:27 AM
Ah, I suspected as much. Just wanted to be sure. Thanks for clearing that up Antonio.

Regards,

Simon 
Tags
Grid
Asked by
Sim
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Sim
Top achievements
Rank 1
Share this question
or