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

[data grid] Scroll restoration

Open marcpachecog opened this issue 1 year ago • 1 comments

Summary

When utilizing the Datagrid with virtualization, it would greatly enhance the user experience to incorporate scroll restoration functionality. Currently, if a user navigates away from the page after clicking on a row, and then returns, they expect the Datagrid to maintain the same scroll position as before.

Examples

No response

Motivation

The absence of scroll restoration leads to a disorienting user experience, as users expect to seamlessly resume their interaction with the DataGrid upon returning to the page. Without scroll restoration, users may need to manually scroll to locate the previously selected row, resulting in frustration and inefficiency.

Search keywords: scroll restoration Order ID: 77729

marcpachecog avatar Feb 13 '24 09:02 marcpachecog

Hey @marcpachecog we do have the ability to scroll to certain indexes. There is an example in the docs: Scrolling

Or does this use-case not satisfy your needs? Let us know and we would love to help (ideally with a minimal reproduction in stackblitz or codesandbox)

michelengelen avatar Feb 15 '24 10:02 michelengelen

The issue has been inactive for 7 days and has been automatically closed.

github-actions[bot] avatar Feb 22 '24 10:02 github-actions[bot]