Hello,
I am using jQuery v1.6.2 and jqgrid v4.2
here is my code for deleting a grid row:
serverResponse is “ok” – but I get the error G.split is not a function
It works fine for adding and updating.
function deleteUser(){
var gr = jQuery(“#List”).jqGrid('getGridParam','selrow');
if( gr != null )
if(gr != 2) {
jQuery(“#List”).jqGrid('delGridRow',gr,{
reloadAfterSubmit:false,
jqModal:false,
closeOnEscape:true,
afterSubmit:function(serverResponse, postdata){
s = jQuery.parseJSON(serverResponse.responseText);
if (s == “ok”){
return [true,””,””]
}
else
return [false,s,””];
}
});
}
else {
$.jgrid.info_dialog($.jgrid.errors.errcap,'
', $.jgrid.edit.bClose,{buttonalign:'right'});
}
else
alert(“Please Select Row”);
}
Any help would be appreciated.
Thanks,
Kris
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top