-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Exporting Not working for master/detail #10505
Comments
You have created a support request under the "Priority Support" terms, which is a paid add-on to MUI X Premium ⏰. Please validate your support key using the link below: https://tools-public.mui.com/prod/pages/jyhs86t?repo=mui-x&issueId=10505 Do not share your support key in this issue! Priority Support is only provided to verified customers. Once you have verified your support key, we will remove the |
@lisaWriteJava Thank you for using MUI X Data Grid. Could you elaborate more on the problem you are facing? Sharing a screen record showing the issue will help. For a test, I tried the codesandbox link attached in the issue and Print works for me in both Firefox and Chrome, the screenshots are attached! Thank you! |
I apologize, I sent the wrong sandbox, https://codesandbox.io/s/ph2c4r?file=/Demo.js is the correct one. So the first column doesn't export the one with the +, it starts from order id. I tried renderHeader and still it wouldn't export. |
Ah ok so you mean the column with the Let me know if you have further questions. |
ahh we had a client that wants to use that master detail (+) column to show/hide a component that may have a lot of data like hundreds of lines. Since it wouldn't look well in a table, we were going to show/hide a card with this information but want to export the info with a print or excel export. Is this achievable. Maybe the approach to do it is wrong and if so what would be the best way to implement this? |
Can you share a minimal demo of the current approach being used and the intended behavior in a codesandbox example, it will help us understand the issue and suggest a better solution. |
Here's a sandbox: https://codesandbox.io/s/zen-smoke-lmnccz?file=/Demo.js I mocked up the first column (+) to show /hide details passed to it. I could make it a larger list but, it would be the same idea. I didn't attempt to put it in a cell like the other data since it would look awful to the user. But if there is a way it can go into a cell but only display like master detail that could work too. |
so what the user has asked is to be able to export the hidden data when I do an export to csv or excel. It can stay hidden in the table but be exportable. I understand that print is available but they'd like the same info to be exported to excel |
It is possible for the hidden data to be able to be exported on a csv or excel export? It's not goign to be somethign they need to fetch but it's just so large it should be shown in the initial grid @MBilalShafi |
I don't think that we support that use-case. What do you mean by hidden data? You've opened this issue as a Priority Support issue but haven't confirmed your support key. Is this a Priority Support issue? |
@romgrk The support key is 66765. So when I say hidden data, I mean the data from details. I'd like that to be able to be exported also but not shown unless we click to show that data on the screen. |
It's not possible to do that for now, the hidden data from details panel is not data formatted in a way the datagrid can use, it's HTML. If you want to add that feature, I would suggest that:
|
Great thanks so much. I appreciate the assistance. This is help greatly in explaining our strategy to the customer. |
👍 |
The problem in depth 🔍
Hello,
As you can see here: https://codesandbox.io/s/ph2c4r?file=/Demo.js the values in the master/details doesn't print. How can I get this to work.
Your environment 🌎
`npx @mui/envinfo`
Search keywords: export master detail
Order ID: 66765
The text was updated successfully, but these errors were encountered: