mui-x
mui-x copied to clipboard
[data grid] Can't scroll to end of dataset fast with paginationModel='server'
I'm using DataGridPro and was loading the entire dataset up to 30-40K rows. Once loaded, one can scroll fast and effortlessly from the start to the end of the dataset leveraging the browser cache.
However, this is extremely slow in a production environment and was forced to switch to infinite scroll with server-side pagination, using RTK query API to fetch pages. The problem is now that while one can infinitely scroll, the scrollbar is constrained to the the currently loaded pages and a bit to scroll to the next page. I specify the rowCount to the actual total length of the data, but the scrollbar doesn't reduce to allow one to scroll quickly to the end or in-between. Must I also now include a pager to navigate through the entire set? Is it possible to achieve the desired behavior I've described?
Search keywords:
Search keywords: