Data undefined when dynamic table
Opened this issue · 3 comments
Best plugin in table's extension.
Somehow, my table's fetching data from database, so there's no static contents written in HTML. This-in my opinion- makes every updatedRow.data()[1]'s output is Undefined. Wherever UpdatedRow.data() creates Undefined instead the existing data.
How can I fix this?
Thanks.
I am running into similar issue. Were you able to fix it?
I ran into a similar issue. What I ended up doing was:
var theUpdatedRowData = dataTable.rows().data().toArray()[updatedRow[0]];
Where dataTable
is the var where you initialized your original dataTable.
This way you have access to the full row that you just updated. It seems like a bit of a workaround, but it allowed me to pass the data over ajax to a MVC controller and correctly update the data in the database.
Didi some one fix this error, I´m with the same issue