Table style width fixed with multipel rows in thead.
Table style width fixed with multipel rows in thead.
Steve_Webtron
Posts: 19Questions: 0Answers: 0
I wanted to make a pritnable report, so in my thead I put in 2 trows...
[code]
<!---
this is the title of my report
--->
Action
ID
Code
Latest
Next
Detail
[/code]
it looks great and it puts a title up on top of my report, however when this happens dataTables fixes the size of the table by adding say: style="width: 1428"
now, I cannot print properly because hte table will not resize as needed.
This also happens with the columnfilter plugin as it uses multiple rows... sigh
[code]
<!---
this is the title of my report
--->
Action
ID
Code
Latest
Next
Detail
[/code]
it looks great and it puts a title up on top of my report, however when this happens dataTables fixes the size of the table by adding say: style="width: 1428"
now, I cannot print properly because hte table will not resize as needed.
This also happens with the columnfilter plugin as it uses multiple rows... sigh
This discussion has been closed.
Replies
I just extended the print button to look for items with the class="dataTablePrint", and re-show them for printing.
[code]
aButtons = [
{ "sExtends": "print",
"fnComplete": function ( nButton, oConfig, oFlash, sFlash ) {
$('.dataTablePrint').show();
}
}]
[/code]