This knowledge base explains how to get the selected Records from all the pages in grid when using checkbox selection.
We can get array of selected record index value with corresponding page information from the variable checkSelectedRowsIndexes of the Grid. Using the selected record index from that variable, we can get the selected records from model.dataSource (dataSource bound to the Grid).
The checkSelectedRowsIndexes is a collection which holds the page Index and the selected record index of the corresponding page.
We can get the selected record details in button click event after selecting all the records using checkbox selection.
Note: This will work only for the local data and not for the remote data. Since Grid will not aware of the other page records in the remote dataSource, it loads current data alone while pagination. If any other actions such as sorting, filtering, grouping has be taken place, we cannot get the selected records from the Grid dataSource.
Figure: Grid with selection and selected records of all the page in console
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|