-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[DataGrid] valueGetter does not apply to CSV export #1814
Comments
The CSV export uses the raw value returned by the
|
I think 2. is good enough for now 🤔 |
You're right. I meant to include |
We could add documentation about it in the CSV export page 👍 https://material-ui.com/components/data-grid/export/#csv-export |
Current Behavior 😯
The CSV export does not get the column value that is displayed in the table through valueGetter. So in the case of objects, it shows [Object object] rather than the value derived from valueGetter of the column.
Expected Behavior 🤔
The exported CSV column that use valueGetter should show the value with valueGetter applied.
Steps to Reproduce 🕹
https://codesandbox.io/s/material-demo-forked-h262z
Steps:
Context 🔦
Related to #1145. Not sure if this is a duplicate or tracked separately for X-Grid.
Our customers would like to be able to export the table content to do additional work on the data. To display what's on the table, we need:
exportValueGetter
that is run just for export (I included an example in the codesandbox above).Your Environment 🌎
`npx @material-ui/envinfo`
Order id 💳
[Order #25281] (May 25, 2021)
The text was updated successfully, but these errors were encountered: