How to print table footer on last page only?
How to print table footer on last page only?
jharrisi
Posts: 1Questions: 1Answers: 0
I'm using the Buttons extension, Print option and I only want the table footer <tfoot> to print on the last page. I tried to just put it in a row <tr><td> at the end of the table, but that doesn't work when I use a custom sort. Any ideas on this?
This discussion has been closed.
Answers
This example shows how to include the footer:
https://datatables.net/extensions/buttons/examples/html5/footer.html
You can do the same for the print button.
Kevin
I have the same question
Hi guys, could you show the footer only at the end of the report in the print view?
hi. i want to show table footer only last page of the report. is it possible in datatable print?
Hi @pulak_cse ,
In that example that Kevin linked to, the footer is only on the last page. If that's not working for you, we're happy to take a look, but as per the forum rules, if you could link to a running test case showing the issue we can offer some help. 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