Update DataTables Row after Database Update
Update DataTables Row after Database Update
Mikla
Posts: 2Questions: 0Answers: 0
I currently have a table of data. In the background, the database that the table is based on continuously updates. I put a button for each row and wrote a simple JavaScript function to process the row:
$('#porders tbody').on( 'click', 'button', function () {
var dataRow = table.row( $(this).parents('tr') );
}
But, how do I refresh the row to update to the latest database data in this function?
Thanks!
This discussion has been closed.
Replies
One option is to use
ajax.reload()
.Kevin
That was perfect with the false resetPaging parameter... Thanks!