Error in Add Row

Error in Add Row

elahi1mahdielahi1mahdi Posts: 9Questions: 5Answers: 0

I Want To Add Row But Show this error .Why?
Code
var table = $('#Mytable').DataTable();
var rowNode = table.row.add([firstrow, model.title, model.task, model.description, data.department_status, lastrow])
.draw(false)
.node().id = model.department_Id;

Error
Cannot set property '_aData' of undefined

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,352Questions: 26Answers: 4,955
    Answer ✓

    It could mean the data structure does not match what Datatables is expecting. Can you post your Datatables init code?

    Kevin

This discussion has been closed.