Please also note that while DataTables supports colspan and rowspan in the table's header and footer, they are not supported in the table's tbody and must not be present.
Datatables expects a one-to-one mapping of cells in the rows and columns to perform the Datatables functions like sorting and searching. This is why rowspan and colspan aren't supported in the tbody.
Please also note that while DataTables supports colspan and rowspan in the table's header and footer, they are not supported in the table's tbody and must not be present.
Answers
The HTML requirements docs state this:
Kevin
Thanks kthorngren, but that is the problem, I need rowspan in the tbody and don't find a way for solve that problem,
Maybe we can offer alternatives. What are you trying to do with the rowspan? Maybe you can build a non-datatable example of what you are trying to do.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Datatables expects a one-to-one mapping of cells in the rows and columns to perform the Datatables functions like sorting and searching. This is why rowspan and colspan aren't supported in the
tbody
.Kevin
I want something like this but number of rowspan are dynamic, no always is the same number.
![](https://datatables.net/forums/uploads/editor/mg/exktxu56vpcp.jpg)
Yep, colspan isn't supported - see the manual:
Colin
Maybe the RowGroup extension will do what you want.
Kevin