autopopulate footer sum success but not show when print
autopopulate footer sum success but not show when print
wkclient
Posts: 3Questions: 1Answers: 0
Hi, i do autopopulate sum in column thanksfully from this forum i can make it working,
the problem is when using print from button extension the autopulate footer not show
live jsfiddle
https://jsfiddle.net/8cvh1wak/6/
i see another method autopopulate footer sum and it show in print
https://jsfiddle.net/g8h0ts5p/
This question has an accepted answers - jump to answer
Answers
You need to have the footer in place before initializing Datatables. In your first example you are appending the footer and Datatables doesn't see it. Updated first example:
https://jsfiddle.net/cq7a49zr/
Kevin
Thank you! since number of the column is dynamic i didn't initialize tfoot value
got another problem, footer print in every page
i want to print on last page only.
the options for print already use footer: true
i just update the datasource in your fiddle to see multiple page result
https://jsfiddle.net/mqyet8wh/