Hi,
Say a grid has a page size of 10. A datasource containing 20 items is bound to the grid and grouped on a given column. The grouping yields 2 groups of 10 elements. By default, only the first group is shown on the first page after the initial load.
On collapse of both groups, I would expect only 1 page of data showing the two collapsed groups. Currently, it seems like paging and grouping are dissociated in the grid even though they should complement each other.
I've seen many threads on grouping and paging and the general solution (without any source code) is to change the paging dynamically. Anyone has done it?
To do this, one would have to know what group is being collapsed/expanded, how many items are in this group and adjust the number of pages, the current page etc. and adjust the paging so that the current page contains all the grouped items collapsed into one plus the number of other items up to the page size. Not sure it's even possible to have different page size in the same grid. Sounds very hard indeed.
Any help is appreciated,
Marc-André Gosset
Say a grid has a page size of 10. A datasource containing 20 items is bound to the grid and grouped on a given column. The grouping yields 2 groups of 10 elements. By default, only the first group is shown on the first page after the initial load.
On collapse of both groups, I would expect only 1 page of data showing the two collapsed groups. Currently, it seems like paging and grouping are dissociated in the grid even though they should complement each other.
I've seen many threads on grouping and paging and the general solution (without any source code) is to change the paging dynamically. Anyone has done it?
To do this, one would have to know what group is being collapsed/expanded, how many items are in this group and adjust the number of pages, the current page etc. and adjust the paging so that the current page contains all the grouped items collapsed into one plus the number of other items up to the page size. Not sure it's even possible to have different page size in the same grid. Sounds very hard indeed.
Any help is appreciated,
Marc-André Gosset