using colspan in row.add()

using colspan in row.add()

mjcordeiromjcordeiro Posts: 1Questions: 1Answers: 0
edited June 2016 in Free community support

Hello,
I have a DataTable and I've been able to add rows dynamically, with:

var table = $('#myTable').DataTable();
var rowNode = table
.row.add( [ lineNumber, kks, kks_descricao, estado] )
.draw()
.node();

Now, I want to make a colspan same way. How can I do that with row.add() , or is there another command for this?
Let's say, in 3rd row I want to rowspan "kks" and "kks_descricao".

Thanks

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Answer ✓

    Sorry - DataTables does not support colspan or rowspan in the tbody regardless of how it is added.

    Allan

This discussion has been closed.