If I use the pagination and grouping feature for IgxGrid, the pages do not adjust as things are grouped together. For instance if I set page size to 10 and there are 50 items, there are 5 pages.
If those 50 items were in 3 groups, and I consolidated each of the three groups, I would expect there to be only one page.
However, the grid still has 5 pages and one must go through all 5 pages to go through the 3 groups.
Any ideas ?
Hello,
Thank you for contacting us.
On the page that you have sent to us the sample that is shown is without paging functionality enabled, so if you read the Group By Specification, you should have seen that the described behavior is expected: Notice the following:
PagingWhen paging is applied the data is split based on the data records only. Page count and page size are calculated based on the data records, group records are not included.Expanding/Collapsing group rows does not affect the page count/page size.Group row's summary should be calculated based on all data records that belong to the group, even if they don't belong to the current page.If a group spans multiple pages, expanding/collapsing that group should change its expand/collapse state on all relevant pages.
If you need any further assistance, please contact us.
Best Regards, Desislava DinchevaAssociate Software DeveloperInfragistics, Inc.
The feature doesn't work as it does on the page:
Instead, in my case the general manager entries would continue to take the whole screen, there'd be a huge blank space, and then the next group would be on the next page.
Thank you for contacting Infragistics Support.
In the Igx Grid, the paging is calculated over the data row records, so when the grouping is applied, the group rows are not calculated and also keep in mind that when you collapse a group row, the hidden rows are still part of your data source. so expanding or collapsing group rows does not affect the page count/page size. You can read the Group By Specification to understand in deep how and why the grouping is intended to work with the other grid's features.