ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: omerix on January 30, 2014, 08:49:37 pm
-
Hello Param,
I have a question. My grid works fine. I can save the values on a row when click up or down arrow. But I also want to save the values on a row when user out of the row in progress without click any arrow keys.
Because sometimes user make some changings in a row and then they click any other cell in a different row and make another changing thus first changings in remains unsaved.
Please see below code i use for saving.
Could you please advice how to solve?
$grid.on("pqgridcelleditkeydown", function( event, ui ) {
keyCode=event.keyCode;
if (keyCode==40 || keyCode==38) {
update(ui.rowIndx,ui.colIndx);
}
});
-
quitEditMode event takes care of that.
What's the code in your quitEditMode event?
-
Hello Param ,
Here is my code in quitEditMode. Sorry for late reply, I was quite bussy.
I have couple of more questions and I am prepareing a video for you to make you understand clearly. I will upload it to a web site and let you check. If needed I will pay for it also.
quitEditMode: function (evt, ui) {
$grid.pqGrid("saveEditCell");
},