We’ve got a data grid component with multi-select enabled. However, we would like to enable selecting only for certain rows, according to the value of a column. For example:
Multiple rows are selectable, except for rows which are not validated. When not selectable, nothing is shown in the checkbox column.
Unless I’ve missed something, there’s no out of the box component that does this, so our chances are:
Option 1 doesn’t seem possible because we cannot control if a single row is selectable, instead having com.vaadin.ui.Grid.SingleSelectionModel#isUserSelectionAllowed to show if all or nothing are selectable.
Option 2 seems the only option, but complicated enough on first sight to ask if there is an easier more direct way of achieving this.
Is there a component or configuration in 6.9.x that allows a conditionally-selectable-multi-check grid?