Could you please describe in more detail what exactly events you need from the checkbox?
DataGrid provides selection listener and select methods (both to select a single item or a collection of items) which are replacements for value change and setValue.
Adding the SelectionListener doesn’t work in both studio and framework. This occurs because the method doesn’t fit the standard definition of a method signature for a subscribe-method. A base subscribe-method has only 1 parameter, which implements eventObject.
For example:
@Subscribe("usersDataGrid")
public void onDataGridSelect(SelectionEvent<DataGrid<User>, User> event) {
// do nothing
}
com.vaadin.flow.data.selection.SelectionEvent doesn’t implement eventObject, so the method can’t be resolved.
The SelectionEvent has two inheritors which extend eventObject: