mui-x icon indicating copy to clipboard operation
mui-x copied to clipboard

[data grid] Can't scroll to end of dataset fast with paginationModel='server'

Open teddis opened this issue 8 months ago • 6 comments

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:

teddis avatar Jun 26 '24 00:06 teddis