Success and error blocks for Edit url method

Success and error blocks for Edit url method

HI

I have JQgrid and i have Edit url on it.

function loadGrid(firstLoad, myColumnsState, savedColModel, currentColModel) {

$('#Jqgrid1').jqGrid({

datatype:

"json",

url:

'@Url.Action("GetDetails", "TestController")',

editurl:

'@Url.Action("InlineEditGetDEtails", "TestController")',

now i want to add Success and Error blocks for the action method of EditUrl, could you please suggest how could I acheive this?

Thanks & Regards,

Joseph