My setting is that i use virtual scrolling in grid with selection. My problem is I will select all entries not only the first page of virtual scrolling. But the event parameter of onSelectionChange had no indicator for selection all click. When noting is selection this example works:
public onSelectionChange(event: SelectionEvent) {
if
(event.selectedCells.length ===
this
.pageSize) {
// selected all click?
this.selectedKeys= this.data.map(data => data.id);
}
if
(event.deselectedCells.length ===
this
.variableDataService.pageSize) {
// selected nothing click?
this.selectedKeys= [];
}