Do not try to update the select all checkbox if it is not visible.
Fixes #10164
if (grid.selectionColumn != null && grid.selectionColumn
.getRenderer() instanceof MultiSelectionRenderer) {
grid.refreshBody();
- CheckBox checkBox = (CheckBox) grid.getDefaultHeaderRow()
+ HeaderCell cell = grid.getDefaultHeaderRow().getCell(grid.selectionColumn);
+ if (cell.getType() == GridStaticCellType.WIDGET) { // if lazy provider, then no checkbox
+ CheckBox checkBox = (CheckBox) grid.getDefaultHeaderRow()
.getCell(grid.selectionColumn).getWidget();
- checkBox.setEnabled(isEnabled);
+ checkBox.setEnabled(isEnabled);
+ }
}
}