How can I confirm saving a change on a cell edit once they have clicked out of that cell. Tried this to no avail:
grid.on("pqgridquiteditmode", function (evt, ui) {
//exclude esc and tab
if (evt.keyCode != $.ui.keyCode.ESCAPE && evt.keyCode != $.ui.keyCode.TAB) {
saveChange();
}
});
// dialog for saving the changes
function saveChange() {
$("#dialog-confirm-save").dialog({
resizable: false,
height: 140,
modal: true,
buttons: {
"Save Changes": function () {
grid.pqGrid("saveEditCell");
$(this).dialog("close");
},
Cancel: function () {
grid.pqGrid('quitEditMode');
$(this).dialog("close");
}
}
});
}