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

Add convenience Java API to froze Grid multiselect checkbox column #6793

Open
TatuLund opened this issue Nov 7, 2024 · 3 comments
Open

Add convenience Java API to froze Grid multiselect checkbox column #6793

TatuLund opened this issue Nov 7, 2024 · 3 comments
Labels
enhancement New feature or request vaadin-grid

Comments

@TatuLund
Copy link
Contributor

TatuLund commented Nov 7, 2024

Describe your motivation

When there is lot of columns, it would be preferable to froze the checkbox column for easy toggling of the selection. The current API is too hard to find, hence convenience API in Grid would be desired.

((GridMultiSelectionModel<?>) grid
  .setSelectionMode(Grid.SelectionMode.MULTI))
  .setSelectionColumnFrozen(true);

Describe the solution you'd like

Naming proposals

grid.setSelectionColumnFrozen(true)

Describe alternatives you've considered

No response

@TatuLund TatuLund added workaround enhancement New feature or request labels Nov 7, 2024
@web-padawan
Copy link
Member

There's actually an API for that but it's not on the Grid itself, see #1198 (comment)

@TatuLund TatuLund changed the title Add Java API to froze Grid multiselect checkbox column Add convenience Java API to froze Grid multiselect checkbox column Nov 7, 2024
@TatuLund
Copy link
Contributor Author

TatuLund commented Nov 7, 2024

@web-padawan thanks for noting that. I updated the ticket scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vaadin-grid
Projects
None yet
Development

No branches or pull requests

3 participants