Hi
We have been using the selection grid in our project since Vaadin 14. However, after updating to Vaadin 23, we found that it is no longer possible to accurately select more than DataCommunicator#pageSize
rows.
@Route("/selection-grid-bug")
public class GridSelectionBugPage extends VerticalLayout {
public GridSelectionBugPage() {
List<Integer> items = IntStream.rangeClosed(1, 50).boxed()
.collect(Collectors.toList());
SelectionGrid<Integer> grid = new SelectionGrid<>();
grid.setSelectionMode(Grid.SelectionMode.MULTI);
grid.addColumn(s -> s);
grid.setItems(items);
// We reduce the page size to simplify the example
grid.getDataCommunicator().setPageSize(10); // 50 by default
grid.setSizeFull();
add(grid);
setSizeFull();
}
}

After a small research, we found out that the DataCommunicator#fetchFromProvider
method has been updated and now it is necessary to turn off paging in order to get the old behavior.
This is not a problem for us, we just use the grid.getDataCommunicator().setPagingEnabled(false)
. But since other developers will also face this, we decided to share our experience here. Might need to update the readme or something like that.