It means, when user was editing row in inlineedit mode and then click to another row, it should ask if he wants to save changes or not. I try to call dialog box like this
onSelectRow:function(){
$("#confirmsave").dialog('open'); }
but because of asynchronous code execution the restoreRow method is called immediately and doesn't wait for response from dialog box. And one strange thing: if I write
onSelectRow: function(){
$("#list").jqGrid('saveRow',lastsel);}
It still calls restoreRow instead of saveRow as I'm expecting. Variable lastsel is assigned in oneditfunc and is getting properly.