Preselecting rows and forcing table update without data changes #3467
Unanswered
alienbuild
asked this question in
Q&A
Replies: 1 comment
-
Meh, figured out I was actually doing it correctly but had this prop set in my table (also remove the async call on the row matching):
If you have a similar issue, and you're also using editable data cells then try this (assuming you're following the editable cell example)
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to preselect rows in my table but the table won't refresh unless there are changes to the actual data itself. Is there a method to reinit the table that doesn't involve changing the data?
It's also completely possible that my method for approaching this requirement is wrong and there may be a better way? I've created an example sandbox here:
https://codesandbox.io/s/mock-preselected-rows-data-t36nl?file=/src/App.js
In this you can see I have a mock response from my server for determining what rows should be selected. I'm then grabbing the data to compare to see if any of the items from the mock response exist in the data and if so push them to a new obj which is then fed into the intialState for selectedRowIds
Any guidance appreciated.
Beta Was this translation helpful? Give feedback.
All reactions