[data grid] Commas in exported files are not handled correctly if value is in array #12945
Labels
component: data grid
This is the name of the generic UI component, not the React module!
customization: extend
Logic customizability
feature: Export
status: waiting for author
Issue with insufficient information
support: premium standard
Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
(Note: we are still on 6.x but as per the sandbox here it appears to happen in 7.x as well)
Link to live example: https://codesandbox.io/p/sandbox/cocky-haslett-kmw4hv?file=%2Fsrc%2FDemo.tsx%3A8%2C18
Steps:
This is a case not handled by #1143
Current behavior
The outputted value takes up more columns than expected, messing up that row's column alignment
What you can do right now as a workaround is use the
valueFormatter
-- although this somewhat bothers me as it seems to potentially affect more than just thecsv export
functionaltiye.g. you can do this:
Expected behavior
Would be great if this worked as expected without the workaround of using valueFormatter
Context
We have values for our grid that are in arrays. These values can have strings with commas in them. We need to be able to export this data in a way that doesn't break columns.
Your environment
I don't know that this matters -- you can see that it occurs in the sandbox shared above.
Search keywords: commas, csv, export, arrays
Order ID: 77204
The text was updated successfully, but these errors were encountered: