Datatable tabletools print
Datatable tabletools print
I have an app in which the part that contains the datable occupies the lower right quarter of the html page. Now when i use TableTools to print , the preview page shows the table in the exact same spot - i.e. in the lower right corner (all the data and formatting is great - just the positing is weird). When i look at the DOM all the other divs are preset with visibility set to none, so they dont show up in the print.
The divs are all absolutely positioned and maybe the cause of the problem. If this is so, is there a way of just passing in the DIV that contains the datatable to print?
thx
-anish
This question has an accepted answers - jump to answer
Answers
I think that is a result of how TableTools tries to be "clever" with the printing. It hides all the other elements on the page - the intention was that it would retain its position in the DOM and thus retain its styling.
However, over time that has problem to not be one of my best ideas. Its not bad, but it doesn't always work as you are seeing.
I've been working on a replacement for TableTools which will include a rewritten print button that will open a new table in a new browser window to help resolve this.
It will be available next week.
Allan
First of all - fantastic work - Datatables is just a breeze to use.
Thanks so much Allan for the quick response - looking forward to the replacement TableTools
Thanks :-)
Has this replacement been released? Did you mean a new version of Datatables, or a totally new extension?
Totally new extension called Buttons. Not released yet. I had hoped it would be today, but between support and documentation taking longer than expected, it will now unfortunately be next week.
Its getting there though :-)
Allan