vaadin / vaadin/framework

Improve grid multiselect with ctrl/shift keys

Open
#6,395 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement workaround
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.