Table Tool Export buttons don't handle fnFooterCallback content correctly

Table Tool Export buttons don't handle fnFooterCallback content correctly

lisah_weducomlisah_weducom Posts: 0Questions: 0Answers: 0
edited December 2012 in TableTools
Second post about this, previous post still 'waiting for approval' I suppose. This follow up post is because I have discovered a second problem, but it is related.

I will in this discussion also include links to a test case demonstrating the issue and the associated datatables debug code:

Test-case public link: http://dev-3.staging.wedu.com/ttools_test.php
Debug submission: http://debug.datatables.net/atamaz

For content generated in the tfoot element via the fnFooterCallback I am observing two scenarios:
1. The tfoot element is not included in the export to PDF or CSV (already reported, but post not published yet, so no link)
2. For the 'print' view ... the content in the tfoot is rendered to the screen twice.

I have provided all information I believe will allow for analyzing, and a demonstration of the issue, reduced to the minimal amount of code necessary to reproduce. Would appreciate acknowledgment of the issue report, even if a solution is not available.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    The problem is that you are inserting new elements into the table's footer on every draw. For example try typing "123" into the search box. Nothing to do with the print view, although that does trigger the issue :-)

    I'd suggest going with the approach I suggested in the other thread.

    Allan
This discussion has been closed.