Skip to content

Conversation

@m2mathew
Copy link
Collaborator

@m2mathew m2mathew commented Oct 30, 2025

The issue

Address this issue, but for v7.x

Not able to print all rows of a datagrid in v7.x

This proposed change is aimed at v.7.x, which still has hundreds of thousands of downloads per week (including for the customers of my company).

The solution

Following a nearly identical solution in this PR that fixed v8.x, update the following:

  • Change the ExportDefaultToolbar in the docs to have 50 rows of data for testing
  • Update the exportDataAsPrint function in the useGridPrintExport hook to disable virtualization when printing

Visuals

Arc browser shown below

When Image
Before 2025-10-30--18 40 05@2x
After 2025-10-30--18 22 59@2x

Test cases

  1. Open the deployed Netlify preview app:
  2. Use Export → Print
  3. Expect to see all 50 of the rows in the print preview or printed document

@m2mathew m2mathew changed the title Fix/export print all the rows fix/export print all the rows in v7.x Oct 30, 2025
@mui-bot
Copy link

mui-bot commented Oct 30, 2025

Deploy preview: https://deploy-preview-20157--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against dc2b560

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants