Footer displays in all columns on print
Footer displays in all columns on print

I am trying to include the print feature with my footer.
Currently me printer function only displays text in column 7, but for some reason after adding an extend to my print function for columns :visible it now displays the footer, but in every column even though I have it setup in my footercallback to only show in column 7.
Any ideas?
For all these functions basically using the default examples shown, but the default examples do not use the callback for printing.
Ideas?
extend: 'print',
footer: true,
exportOptions: {
columns: ':visible'
}
if you have 10 columns but only show a column value in column 7 it works in data tables but in print it goes
total | total | total | total ...etc...etc.. for each column
Any advice?
Thanks
This question has an accepted answers - jump to answer
Answers
Are you using
colspan
in the footer? If so try removing it and createth
for each column. If this doesn't help then please post a link to your page or a test case replicating the issue. This way we can see exactly what you have.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Ok so it was colspan. I removed that and it works.
Thanks