Pagination Not Updated During Group Mode Expansion/Contraction
gerryfletch opened this issue · comments
Hello, amazing library! Appreciate all the work that's gone into it.
I'm using fixed pagination, i.e. paging: { enabled: true, pageSize: 10 }
, but when using column groups, if I contract the grid down to 1 or 2 rows, the pagination numbers have not updated, and visiting the 2nd page results in an empty grid.
Ideally, the paging would reflect the number of visible rows and update when the collapse/expand event fires.
Hi @gerryfletch can I ask you to provide an example for your case, for example on stackblitz: https://stackblitz.com/edit/table-paging-ts?file=Demo.tsx
Sure! Here you go:
https://stackblitz.com/edit/table-paging-ts-q8alm3?file=Demo.tsx
I changed the data array to have the same value for column 4 then added groups: [{ columnKey: "column4" }],
to the config.
If you just collapse the row, and then navigate to any of the pages :)
this is a good catch
Thank you so much for the quick fix! Really appreciate it