Replies: 3 comments 6 replies
-
|
I'm running into the same issue, but based on the documentation's row grouping sandbox I wonder if that's the library's intended behavior 😞 The default page size is 10, and when you "group by age" it displays 10 grouping rows rather than 10 data rows within the first grouping:
I haven't been able to find any option to change that behavior. But the issue seems to be coming from the row slicing done in Specific docs that were helpful for me: |
Beta Was this translation helpful? Give feedback.
-
|
Removing group headers from the row count is a bad idea, 'cause it conflicts with many internal states of react table. You can use const tableInstance = useTable({
columns,
data: tableData,
enableGrouping: true,
enablePagination: true,
paginateExpandedRows: false,
}); |
Beta Was this translation helpful? Give feedback.
-
|
There is no built-in option for “page size counts only leaf rows, but group header rows do not count”. Group headers are rows in the row model, and
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I have a table with 10 rows, it has pagination and grouping enabled and pageSize is 10 also.
I have 3 groups set up on the table.
1st group has 2 rows
2nd group has 1 row
3rd group has 4 rows
The sum of the group rows is 7, but still it fills the entire first page because of the grouping (3 grouping rows) and shows the other 3 missing rows on the second page.
Is there something I need to enable to remove group headers from the row count for one page?
Beta Was this translation helpful? Give feedback.
All reactions