Code Monkey home page Code Monkey logo

Comments (15)

github-actions avatar github-actions commented on July 22, 2024

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 support: unknown label and add the support: priority label to this issue. Only then the time for the SLA will start counting.

from mui-x.

MBilalShafi avatar MBilalShafi commented on July 22, 2024

@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!

Firefox:
image

Chrome:
image

Thank you!

from mui-x.

lisaWriteJava avatar lisaWriteJava commented on July 22, 2024

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.

from mui-x.

MBilalShafi avatar MBilalShafi commented on July 22, 2024

Ah ok so you mean the column with the + icons for expansion of the master detail panel, it's the intended behavior to not make it part of print export, as it couldn't be further interacted with so doesn't make a lot of sense to make it part of the exported table.

Let me know if you have further questions.

from mui-x.

lisaWriteJava avatar lisaWriteJava commented on July 22, 2024

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?

from mui-x.

MBilalShafi avatar MBilalShafi commented on July 22, 2024

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.

from mui-x.

lisaWriteJava avatar lisaWriteJava commented on July 22, 2024

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.

from mui-x.

MBilalShafi avatar MBilalShafi commented on July 22, 2024

Following your example, I can export the card just fine (without the +/- icons which obviously don't make sense as they won't be interactive in the PDF/printed version)
image

Are you having difficulties in getting a result similar to one I attached above?

from mui-x.

lisaWriteJava avatar lisaWriteJava commented on July 22, 2024

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
@MBilalShafi

from mui-x.

lisaWriteJava avatar lisaWriteJava commented on July 22, 2024

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

from mui-x.

romgrk avatar romgrk commented on July 22, 2024

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?

from mui-x.

lisaWriteJava avatar lisaWriteJava commented on July 22, 2024

@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.

from mui-x.

romgrk avatar romgrk commented on July 22, 2024

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:

  • You look into row grouping, and group the additional data that you want to export as children of each of your rows.
  • Write the export logic yourself, you'll be free to customize however you want.

from mui-x.

lisaWriteJava avatar lisaWriteJava commented on July 22, 2024

Great thanks so much. I appreciate the assistance. This is help greatly in explaining our strategy to the customer.

from mui-x.

romgrk avatar romgrk commented on July 22, 2024

👍

from mui-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.