Hi Peter. I don’t understand the functionality of the ESC key: it puts my row in not-editing mode without changing cell values, but unfortunately it still calls the updaterow callback function of the grid in order to send data to database. How should I call commit(false) in order to cancel the changes?
My code is:
updaterow: function (rowid, rowdata, commit) {
$.ajax({
dataType: 'json',
type: 'POST',
url: 'myurl.php',
data: rowdata,
success: function (data, status, xhr) {
commit(true);
$('#jqxgrid').jqxGrid('updatebounddata'); //why updatebounddata if commit preserves cell changes???
},
error: function (xhr, tst, err) {
alert(err);
commit(false);
}
});
}