I am trying to implement server side pagination or Server side infinite scroll in the ag grid in the angular 6.
Like https://www.ag-grid.com/javascript-grid-infinite-scrolling/
but I don't see the API call in the network tab when we scroll in the ag-grid, so it means it does not call the API again and Again to fetch the set of rows,
but for my requirement, I need a call back to API to retrieve the first 100 rows and when we scroll -> next 100 and so on,
So, I want to pass a param as startRow and endRow to the API to fetch same from DB and then return to ag-grid. So main thing is I want to go the DB for every set of record through API as mediator.
Please help me with such a solution, it's similar to have server-side pagination that we use to do earlier days, but I want it in ag-grid.
dataSource.getRows
method. Assign the dataSource object to ag-grid. - Paritosh