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

[data grid] Any opened group by rows is automatically closed before printing #14023

Open
VictimCrasher opened this issue Jul 29, 2024 · 1 comment
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Export regression A bug, but worse

Comments

@VictimCrasher
Copy link

VictimCrasher commented Jul 29, 2024

Steps to reproduce

Link to live example: https://codesandbox.io/s/stoic-shannon-c246cm

Steps:

  1. Expand one of the group by
  2. Click export > print

Current behavior

Expanded rows are closed before printing, making it impossible to print any row group view

2024-07-28-GroupByPrint.mp4

Expected behavior

Compared to v6, the opened row is retained on print preview:
https://codesandbox.io/s/gifted-sea-35vr89

2024-07-28-GroupByPrintv6.mp4

Context

I have a Datagrid with row grouping and filter enabled by default, but the user now cannot print the grouped data
I initially thought it's due to rerendering but it seems it's not the case

Although it seems related with this issue in one way or another #13962

Your environment

npx @mui/envinfo
System:
    OS: Windows 10 10.0.19045
  Binaries:
    Node: 14.19.0 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.16 - C:\Program Files\nodejs\npm.CMD
    pnpm: Not Found
  Browsers:
    Chrome: 126.0.6478.185
    Edge: Chromium (127.0.2651.74)
  npmPackages:
    @emotion/react: ^11.10.5 => 11.10.6
    @emotion/styled: ^11.10.5 => 11.10.6
    @mui/base: ^5.0.0-alpha.101 => 5.0.0-alpha.125
    @mui/core-downloads-tracker:  5.16.0
    @mui/icons-material: ^5.11.9 => 5.11.16
    @mui/lab: ^5.0.0-alpha.103 => 5.0.0-alpha.126
    @mui/material: ^5.15.14 => 5.16.0
    @mui/private-theming:  5.16.0
    @mui/styled-engine:  5.15.14
    @mui/styles: ^5.15.14 => 5.16.0
    @mui/system: ^5.15.14 => 5.16.0
    @mui/types:  7.2.4
    @mui/utils:  5.12.0
    @mui/x-data-grid-premium: ^7.0.0 => 7.9.0
    @mui/x-date-pickers: ^7.0.0 => 7.9.0
    @mui/x-date-pickers-pro: ^7.0.0 => 7.9.0
    @mui/x-internals:  7.9.0
    @mui/x-license: ^7.0.0 => 7.9.0
    @mui/x-tree-view: ^7.9.0 => 7.9.0
    @types/react:  18.0.35
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
    styled-components:  5.3.9
    typescript:  4.9.5

Search keywords: export, grouping

@VictimCrasher VictimCrasher added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jul 29, 2024
@github-actions github-actions bot added the component: data grid This is the name of the generic UI component, not the React module! label Jul 29, 2024
@MBilalShafi MBilalShafi added regression A bug, but worse feature: Export and removed bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jul 29, 2024
@github-project-automation github-project-automation bot moved this to 🆕 Needs refinement in MUI X Data Grid Jul 29, 2024
@MBilalShafi MBilalShafi moved this from 🆕 Needs refinement to 🔖 Ready in MUI X Data Grid Jul 29, 2024
@MBilalShafi
Copy link
Member

Thank you @VictimCrasher for reporting. I can confirm this is a regression from v6. Added to the queue of issues to be prioritized.

@michelengelen michelengelen changed the title [Data Grid] Any opened group by rows is automatically closed before printing [data grid] Any opened group by rows is automatically closed before printing Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Export regression A bug, but worse
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants