-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[DataGridPro] Row reorder using drop indicator #18627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataGridPro] Row reorder using drop indicator #18627
Conversation
Deploy preview: https://deploy-preview-18627--material-ui-x.netlify.app/ Bundle size reportTotal Size Change: 🔺+15.2KB(+0.11%) - Total Gzip Change: 🔺+3.62KB(+0.09%) Show details for 100 more bundles (22 more not shown)@mui/x-data-grid-premium parsed: 🔺+3.38KB(+0.60%) gzip: 🔺+746B(+0.46%) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice UX improvement @MBilalShafi 👍
Changes
Explored a bit about it in #18251 as a potentially improved UX:
dragOver
, only add a drop indicator at the place where the row would moverowDragEnd
didn't fire on the row virtualized out.Previews:
Before: https://deploy-preview-18810--material-ui-x.netlify.app/x/react-data-grid/row-ordering/
After: https://deploy-preview-18627--material-ui-x.netlify.app/x/react-data-grid/row-ordering/
To Dos:
Fix top border jumprowDragEnd
not firing for unmounted rows (inspiration from [DataGridPro] Fix row ordering not auto-scrolling when moving beyond viewport #18557 (comment))Follow-ups
<GridScrollArea />
Changelog
✨ Improve the drag and drop interaction for Data Grid row reordering feature. It uses a drop indicator to point to the position the row would be moving to.
row-reordering-ux-improvement.mov