whow to print a page with DataTables in it keeping the page format ?

whow to print a page with DataTables in it keeping the page format ?

smarrecosmarreco Posts: 2Questions: 1Answers: 0

I have a DataTables that uses half of the page width. But when I try to print to page, the DataTable expands to the whole width of the page. I tried to make responsive=false, but didn't work. What may I be missing?

Answers

  • kthorngrenkthorngren Posts: 21,171Questions: 26Answers: 4,922

    Are you saying you want half the page width printed or that you won't want to print the hidden columns. This example shows how to print just the visible columns.

    Kevin

  • smarrecosmarreco Posts: 2Questions: 1Answers: 0

    I want the WHOLE page printed, not just the table. I'm printing with the print option of the browser. Problem is that the table is expanding to the width of the page, and other text at the right side of the table is beeing pushed the to bottom of the table.

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.