I am using ag-grid for table in my Angular 6 application. Below is my gridOptions configuration for ag-grid.
gridOptions: GridOptions = {
rowBuffer: 0,
rowSelection: "multiple",
rowModelType: "infinite",
cacheOverflowSize: 2,
maxConcurrentDatasourceRequests: 2,
infiniteInitialRowCount: 1,
maxBlocksInCache: 2
};
As going through the documentation of ag-grid , I am unable to find custom pagesize for infinite scrolling.
My requirement is to have page size of 20 i.e
startRow = 0 and endRow = 20 and pageSize = 20 //my-requirement
What ag-grid provides is below:
startRow = 0 and endRow = 100 and pageSize = 100 //default configuration
Is there any way to change the default configuration of ag-grid .Can anyone help me in this.!