Select only visible rows #2569
Replies: 2 comments 2 replies
-
https://react-table.tanstack.com/docs/examples/row-selection-and-pagination
This document page has explained the solution for that |
Beta Was this translation helpful? Give feedback.
-
FYI - for react-table V8 you can do:
https://tanstack.com/table/v8/docs/api/features/row-selection#gettoggleallpagerowsselectedhandler This is the function that selects only the rows from the current page (visible). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm using react-table v7 with client-side pagination and I've implemented the useRowSelect hook, as from the Examples page.
When I select a single row everything is good, but when I click on the Header checkbox every row is selected while my purpose is to select only the rows of the current page. Is there any tricky way to perform this behaviour? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions