TableTools only exporting single header row
- by Rakeesh
I am using the DataTable jquery plugin from: http://datatables.net/
I have a DataTable that has multi-row table header with colspan.
Something like:
<thead>
<tr>
<th>Level 1</th>
<th colspan='2'>Level 1 - Item 1</th>
<th colspan='2'>Level 1 - Item 2</th>
</tr>
<tr>
<th>Level 2</th>
<th>Level 2 - Item 1a</th>
<th>Level 2 - Item 1b</th>
<th>Level 2 - Item 2a</th>
<th>Level 2 - Item 2b</th>
</tr>
</thead>
However when I use the TableTools plugin to export then except for the "Print" option all the rest (Excel, CSV, Pdf etc) only has the "Level 2" header row and not the Level 1.
Any suggestions on how to get it to export also Level 1?