You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am using the selection hook in my table and i can't find a way to override the select all checkbox behavior.
Since i am using servicer side pagination, when a user clicks the header checkbox he selects all possible results (even if they are not loaded yet) so getToggleAllRowsSelectedProps works well for me.
However if i start removing the selection from specific rows, the isAllRowsSelected turns false.
I want it to turn false only if the header checkbox is clicked because my user needs to be able to say "all rows, except this 2" is it possible to do this with useRowSelect?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using the selection hook in my table and i can't find a way to override the select all checkbox behavior.
Since i am using servicer side pagination, when a user clicks the header checkbox he selects all possible results (even if they are not loaded yet) so getToggleAllRowsSelectedProps works well for me.
However if i start removing the selection from specific rows, the isAllRowsSelected turns false.
I want it to turn false only if the header checkbox is clicked because my user needs to be able to say "all rows, except this 2" is it possible to do this with useRowSelect?
My implementation is similar to this
https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/row-selection
Thank you
Beta Was this translation helpful? Give feedback.
All reactions