Skip to content
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

Dynamic Header Generation Based on Column Count in MUI DataGrid #15278

Open
mahammahmood opened this issue Nov 5, 2024 · 0 comments
Open

Dynamic Header Generation Based on Column Count in MUI DataGrid #15278

mahammahmood opened this issue Nov 5, 2024 · 0 comments
Labels
status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@mahammahmood
Copy link

mahammahmood commented Nov 5, 2024

The problem in depth

I'm using MUI DataGrid, and I want the header row in the Excel export to be dynamically generated, spanning across all columns. This header should display information such as the download timestamp and user info, with a custom background color. Currently, I need to set a fixed column count, so it doesn’t adjust dynamically based on the actual column count. Is there a solution to achieve this functionality?

Here is the live demo:
https://stackblitz.com/edit/react-wgnwah?file=Demo.tsx

Screenshot 2024-11-05 123412

Your environment

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

Search keywords: Data ,Grid , Premium, GridToolbarExport, GridExceljsProcessInput,
Order ID: 91010

@mahammahmood mahammahmood added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels Nov 5, 2024
@github-actions github-actions bot added the support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/ label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Projects
None yet
Development

No branches or pull requests

1 participant