Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server side data with selected rows #1836

Open
cagosto opened this issue Dec 22, 2021 · 0 comments
Open

Server side data with selected rows #1836

cagosto opened this issue Dec 22, 2021 · 0 comments

Comments

@cagosto
Copy link

cagosto commented Dec 22, 2021

Expected Behavior

If you are doing a sever side render with selected rows and have selectToolbarPlacement set to 'above' when you do something like search, filter or sort the selected rows should be unselected as that Item might not be in the response. Might want to update the onTableChange to have set state options so user can reset table state of thing if needed.

Current Behavior

If you are doing a sever side render with selected rows and have selectToolbarPlacement set to 'above' when you do something like search, filter or sort the selected rows index is still selected. So if I select the first item an sort by name the first item of the few results is still selected .

Steps to Reproduce (for bugs)

  1. set serverSide: true
  2. set selectToolbarPlacement: 'above'
  3. select a first row
  4. sort by column header
selected-row-bug.mp4

Your Environment

Tech Version
Material-UI ^5.1.0
MUI-datatables ^4.0.0
React ^17.0.2
browser all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant