mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.09k stars 1.27k forks source link

Is there a way to switch page during drag-and-drop? #9868

Open m-konkov opened 1 year ago

m-konkov commented 1 year ago

Duplicates

Latest version

Summary 💡

Are there ways to switch the pagination page while dragging a row in a table? I did not find any information about this either in the documentation or in the issues. Maybe there are some plans to implement this feature?

Examples 🌈

https://codesandbox.io/s/fervent-moon-nyy7hw?file=/Demo.tsx

Motivation 🔦

I want to be able to move a row to the next page of the data grid.

Order ID 💳 (optional)

48449

DanailH commented 1 year ago

@m-konkov thanks for reporting this. The short answer is - no, currently triggering a pagination page change while dragging a row is not supported out of the box. To be honest we haven't really considered that case so I'm interested to see what the demand for this interaction is. We've mostly focused on interaction with virtualization. I'll add a "waiting for upvotes" label

cherniavskii commented 1 year ago

Is it possible to cover this in a recipe? This could be a good start.