Select all on grid when using a BackEndDataProvider v14

Hello.
I have successfully wired up our Grid to a BackEndDataProvider but now I need the ability to “Select all” in different scenarios (with different filters applied to the data). How do I re-enable the Select all check box? I have set the setSelectionMode to MULTI but that isn’t it.

Thank you,

  • Jon

Like this:


		GridMultiSelectionModel model = (GridMultiSelectionModel) grid.getSelectionModel();
		model.setSelectAllCheckboxVisibility(GridMultiSelectionModel.SelectAllCheckboxVisibility.VISIBLE);

It’s intentionally off by default, as selecting all items means the entire backing dataset must be loaded into memory, which is kind of contrary to the idea of a lazy-loading dataprovider.