Hello,
I have 2 quick questions.
1: i use inline editing, so when you click on a cell it will highlight the entire row and turn it into input fields, eg :
onSelectRow: function(id){
if(id && id!==lastsel){
jQuery('#rowed3').jqGrid('restoreRow',lastsel);
jQuery('#rowed3').jqGrid('editRow',id,true);
lastsel=id;
}
},
But then, after you have edited the cell and press enter on keyboard, it will save it.
But i have set editurl and url to “clientSide” since i wan tto write my own logic for saving it to a server, so i need an event to fire to let me know i have to get the new data and save it my own way.
But there does not seem to be one? in the wiki i can only find events such as beforeEditCell, afterSaveCell, only CELL. and these does not even fire either in my case, i have tested all of them. So how do i detect when the user presses enter and the data is saved ?
2: i'd like to make it so you dont actually have to press enter on the keyboard in order to save the new data, i would like it so if you select another row , or just deselects the current one, it automatically saves. how do i accomplish this? i guess i need an event for when a row looses selection, and a way to get the changed information. And then, what function do i call to save it? i guess the same one as keyboard-enter calls, but which is that?
Help greatly appreciated
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top