Cannot use colspan in tbody
Cannot use colspan in tbody

I have already read this thread - https://datatables.net/forums/discussion/30847/cannot-use-colspan-in-tbody. But wanted to know how we are able to perform it for collapsible rows then (https://datatables.net/examples/api/row_details.html)? There also we have <tr><td colspan="5"><table....>
I am also trying to implement colspan in tbody.
Thanks in advance
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
There is no option to use colspan in the tbody in DataTables other than with the child row.
Allan
Thank you Allan, just need to know how I will use that child row. Is it going to be similar to what there is in the example - collapsible rows? It actually repeating the same table, but in my case that table inside <td> is not repeating. It is a different table for each row. Can you give me clue on how to achieve same?
The example uses a function called
format
to build the HTML for the child rows. You can create any valid HTML that you want. Just pass the data into the function you want displayed.Without knowing more about your data its hard to give an example. Are you needing to ajax load the data for each child row? If so this blog should help.
Kevin