I am using one jQuery
plug-in called DataTables
:
The plugin doesn't support rowspan in tbody
<tr class="colorrow">
<td id="greater" rowspan="3">TMMS</td>
<td>Case Volume</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>1</td>
<td>1</td>
</tr>
Is there any other solution for this?
The fnFakeRowspan function on the datatables.net website wasn't working well for me. Instead, I wrote a new version:
https://gist.github.com/4155754
To use it, add data-rowspan="XXX" and data-hide="true" attributes to your cells, like this:
Ideally this script would automatically calculate which cells to hide, but I had that info already, so didn't write that into this script.
Then call it as usual:
Try this. Just apply css "display:none;" where you want to apply rowspan.
Put same script for datatable.
http://datatables.net/plug-ins/api#fnFakeRowspan
You can hide the cells and add rowspan attributes after the redraw of the table
in the configuration add the parameter drawCallback :
Then expose the callback function
then the function to collapse