No table content shows (only header) when printing from within a modal dialog.

No table content shows (only header) when printing from within a modal dialog.

matolamatola Posts: 23Questions: 6Answers: 1
edited November 2013 in TableTools
The same table prints nicely with both header and contents if it called as separate page.
How can I print full table from within a modal dialog?

Replies

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Hi,

    When you say "Print" do you mean the TableTools print button? Are you able to link to the page so I can take a look and see what is going wrong?

    Thanks,
    Allan
  • matolamatola Posts: 23Questions: 6Answers: 1
    edited December 2013
    Try http://vlsys.se/sjhdgfa/

    Click on "ALLAN" and use print button with browser's print function. (Chrome)
  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Hi,

    Thanks for the link! I see the issue now - the table is inside an iframe. So what is happening is that TableTools is correctly removing the other elements on the page for a print display, but only inside the iframe - it doesn't have access to the outer document.

    Are you able to load the modal in a div container rather than an iframe? That would resolve the issue.

    Allan
  • matolamatola Posts: 23Questions: 6Answers: 1
    edited December 2013
    Hi,

    Thank you for your reply. I tried opening DT inside modal div first (before iframe solution). However, when I did that the editor form appears *behind* the modal. I tried increasing/decreasing different z-indexes in css but without avail.

    Mats
This discussion has been closed.