Update data of a single cell
Update data of a single cell
Hello,
i have an environment where all data automatically updates in the browser, whenever it has been changed in the database.
Therefore each displayed database value (inside a table cell) has an Id, and the server simply calls the JavaScript to replace the value with the right Id.
My Problem now is, that I dont know how to notify DataTables about that changed value.
A perfect solution would be something like this:
myDataTable.UpdateCell(cell);
I'm sure there is a solution for this and hope you can help me out.
Thanks in advance,
Timon
Answers
a little hackish is
setInterval(function() {
table.ajax.reload();
},30000); // every 30 seconds
but this is very expensive operation and might not fit what you need :)
cell().data()
is the method that would be used to update the data in a cell. Thecell-selector
documentation details the cell selector options.Allan