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

Selected rows doesn't update when a hidden column is shown #661

Closed
orebete opened this issue Dec 17, 2021 · 1 comment
Closed

Selected rows doesn't update when a hidden column is shown #661

orebete opened this issue Dec 17, 2021 · 1 comment

Comments

@orebete
Copy link

orebete commented Dec 17, 2021

It happens when you select some rows.
Then if you change the columns' visibility and a hidden column is changed to visible, it won't mark as selected the new cells.

Screen Shot 2021-12-17 at 1 19 15 PM

@6pac
Copy link
Owner

6pac commented Dec 20, 2021

I have fixed the setColumns method in the grid so that it refreshes the selection. This will be in the next release.
In the meantime, you can refresh the selection after the call to setColumns (assuming you are using RowSelectionModel):

  grid.setColumns(showColArr);
  grid.getSelectionModel().setSelectedRows(getSelectedRows());

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

2 participants