I am using the DataTable with an edit dialog box. As soon as I hit sve on my dialog box it saves to the table and I can see it.
I updated the function to update the database and that works too but it wont refresh the table
I can do one or the other but not both at the same time.
here is the updaterow code
updaterow: function (rowid, rowdata, commit) {
// synchronize with the server – send update command
var data = “update=true&CustomerID=” + rowdata.CustomerID + “&ContactName=” + rowdata.ContactName + “&ContactTitle=” + rowdata.ContactTitle;
data = data + “&CompanyName=” + rowdata.CompanyName;
$.ajax({
dataType: ‘json’,
url: ‘test_data.php’,
data: data,
success: function (data, status, xhr) {
// update command is executed.
commit(true);
}
});
}