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.52k stars 1.31k forks source link

[data grid] Support row delimiter with the clipboard feature #14960

Open shoxter opened 3 weeks ago

shoxter commented 3 weeks ago

The problem in depth

Hi MUI Support,

Is there a way, on copy/paste within DataGrid, to override the row delimiter? It appears the cell delimiter can be overridden but that isn't enough for my use case as the newline character is very likely to be present in the actual data being copied which would break the split-by-newline logic on paste.

Thank you!

Your environment

`npx @mui/envinfo` ``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```

Search keywords: clipboard copy paste data grid Order ID: 96266

MBilalShafi commented 3 weeks ago

Hey @shoxter, thank you for the request.

We discussed the possibility to add a row delimiter when implementing clipboard import but didn't follow that route as it didn't seem a very demanding use case at that point.

I'll add a Waiting for 👍 label to the issue to see if there's a clear demand for it and prioritize accordingly. Feel free to leave your upvote on the issue description.