'Server-side model and pagination for Ag-grid
When using the server-side model for Ag-grid, how does the grid know the number of pages (i.e. how does it display Page 1 of X)...coz we only fetch like e.g. 100 records at once even if there are like 500 possible records ...(so how does the grid know that X here is 5)
Is there some specific attribute to be set (for X) when calling the AGGrid component ?
Solution 1:[1]
You could either use something like below Documentation
Or you can implement infinite scrolling Documentation
There is another example implemented that is explained at SO
Solution 2:[2]
The grid property paginationPageSize is what determines how many rows will show per page.
By default paginationPageSize is set to 100.
For example in the following example: https://plnkr.co/edit/3VUNVvSNucbnsbJe
There are 8000 rows in the Server, the Grid is fetching 500 rows at a time and there are 200 rows in each page.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Bharat |
| Solution 2 | Shuheb |

