Improve grid multiselect with ctrl/shift keys
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 717
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
Originally by plel
It would be helpful if the multiselect feature of the new Grid component could be improved. Selecting multiple entries must be done by clicking on each row's checkbox. If one wants to select a batch of e.g. 50 rows, 50 clicks are necessary.
Similar to ticket #3520 for the old table component, using shift to select all rows between two rows would be a major improvement.
It would also help if one could click anywhere in a row to select it. Pressing ctrl key should select the row under the cursor in addition to other selected rows. Clicking without the ctrl key should unselect other rows.
Imported from https://dev.vaadin.com/ issue #16908
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the new Grid component and its existing multiselect handling, then review ticket #3520 for the old table component. Define how row clicks, ctrl-click, and shift-click should interact with checkbox selection, and verify that batch selection and replacement of the current selection work consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100