hi Guys i am facing a similar problem. here it's my code..
var gr = jQuery('#mainexecutivesg').jqGrid('getGridParam','selrow');
if(gr!= null){jQuery('#mainexecutivesg').jqGrid('editGridRow',gr,{/*afterSubmit:function(response,postdata){alert(response.responseText);},*/top:50,left:400,width:420,height:550,processData:”Editando Data En Servidor Remoto…”,reloadAfterSubmit:false,closeAfterEdit:true,closeAfterAdd:true});else alert(“Debes Seleccionar Una Registro Primero”);}catch(E){alert(E);}}
as you can see.. everything is OK. but when uncommment the aftersubmit callback. the form doesn't dissapear after the response from the server(seems useless..[closeAfterEdit:true,closeAfterAdd:true])…