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

Grid shift-click range selection #8142

Closed
rolfsmeds opened this issue Nov 13, 2024 · 0 comments
Closed

Grid shift-click range selection #8142

rolfsmeds opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request vaadin-grid

Comments

@rolfsmeds
Copy link
Contributor

Describe your motivation

Selecting a range of rows in a Grid by

  1. selecting the item at one end of the range
  2. while holding shift, selecting the item at the opposite end of the range

Describe the solution you'd like

As the Grid's lazy-loading virtual-scrolling nature means that the Grid itself often cannot known which items actually exist between the ends of the range, the only fully reliable way to implement this would seem to be a way to provide the developer with a way to implement the selection themselves when such a range-selection happens, e.g. via events.

Describe alternatives you've considered

No response

Additional context

This is basically a narrowed-down version of #2041 that focuses solely on range selection via shift-click using the normal multiselect checkboxes in Grid. (For other features like a multi-selection mode that works without checkboxes, see that other issue).

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
Status: March 2025 (24.7)
Development

No branches or pull requests

2 participants