TableTools only exporting single header row
Posted
by
Rakeesh
on Stack Overflow
See other posts from Stack Overflow
or by Rakeesh
Published on 2011-10-05T11:37:12Z
Indexed on
2012/12/05
11:06 UTC
Read the original article
Hit count: 196
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?
© Stack Overflow or respective owner