Mui-datatables: Responsive table, shows rows as stacked when printed

Created on 11 May 2019  路  3Comments  路  Source: gregnb/mui-datatables

I have a grid that is set as Responsive, Staked. but when I click Print on desktop, the preview is shown as stacked

But I need the print to look like what I see on the page.

I tried making it non-responsive, then the preview does not looks stacked, but then there is a vertical scroll bar and it does not print all the records

This is similar to this I guess: 526

bug

All 3 comments

I tried making it non-responsive, then the preview does not looks stacked, but then there is a vertical scroll bar and it does not print all the records

That happens because when setting responsive to scroll, the table gets a max-height of, 499px, which will make it "not print all the records", as they will be hidden.

See the following comment for a fix:
https://github.com/gregnb/mui-datatables/issues/378#issuecomment-458112410

Thanks, that worked for me

As of V2.10.0 it is now possible to use the prop responsive="scrollFullHeight" to make the table full height and a scroll behavior at the same time. That should fix the issue.

See https://github.com/gregnb/mui-datatables/pull/867

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ronaiza-cardoso picture ronaiza-cardoso  路  3Comments

NickToye picture NickToye  路  4Comments

kylane picture kylane  路  3Comments

chapmanjacobd picture chapmanjacobd  路  4Comments

alexanderwhatley picture alexanderwhatley  路  4Comments