How can I add new row column when column is hidden.
How can I add new row column when column is hidden.
I add a new row to datatable, but at the time I try to set data to one hidden row does not set any data. This appears like when row is hidden cannot do anything with it as row does not exists!
This is my table:
First column | 2 | 3 | 4 | 5 | 6 |
---|
-Dinamically i add new node:
var table = $('#descripcionPT').DataTable();
var rowNode = table.row.add( [
val 1,
val 3,
val 4,
val 5,
val 6,
val 7
] ).draw().node();
-And I have my columns datatable configuration:
columns: [
null,
null,
{ "width": "5%" },
null,
{ "visible": false },
{ "visible": false }
]
Could someone help me please?
Answers