Directory

← Back

Selection GridPro

Selection Grid component for Grid Pro

Author

Contributors

Rating

Description

Selection Grid Pro component is based on Selection Grid component to provide support for multi-selection in Vaadin Grid Pro. It allows to:

  • select a range of rows with SHIFT/CTRL + Click or SHIFT + Arrow
  • select/deselect a row using Space Bar

Missing features or bugs

You can report any issue or missing feature on github: https://github.com/vaadin-component-factory/selection-grid-pro-flow/issues

Major pieces of development of this add-on has been sponsored by multiple customers of Vaadin. Read more about Expert on Demand at: Support and Pricing

Sample code

        List<Person> personList = getItems();
        GridPro<Person> grid = new SelectionGridPro<>();
        grid.setItems(personList);

        grid.addEditColumn(Person::getFirstName).text(Person::setFirstName).setHeader("First Name");
        grid.addEditColumn(Person::getLastName).text(Person::setLastName).setHeader("Last Name");
        grid.addColumn(Person::getAge).setHeader("Age");
        grid.addEditColumn(Person::isSubscriber).checkbox(Person::setSubscriber)
        .setHeader("Subscriber");

        grid.setSelectionMode(Grid.SelectionMode.MULTI);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Initial release

Features:

  • Select a range of rows with SHIFT/CTRL + Click or SHIFT + Arrow
  • Select/deselect a row using Space Bar
Released
2023-02-02
Maturity
EXPERIMENTAL
License
Vaadin Commercial License

Compatibility

Framework
Vaadin 23
Browser
N/A
Online