Table style width fixed with multipel rows in thead.

Table style width fixed with multipel rows in thead.

Steve_WebtronSteve_Webtron Posts: 19Questions: 0Answers: 0
edited April 2014 in DataTables 1.10
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

Replies

  • Steve_WebtronSteve_Webtron Posts: 19Questions: 0Answers: 0
    Side note, I accomplished one part of what I wanted: to have a title / area printable that is not inside DataTables.
    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]
  • Steve_WebtronSteve_Webtron Posts: 19Questions: 0Answers: 0
    Now I need to figure out how to allow the column filter plugin to work (it adds an additional TR)
This discussion has been closed.