views:

470

answers:

1
     onSelectRow: function(id) {
                      if (id && id !== lastsel<%= count %>) {
                          $j(gridName).restoreRow(lastsel<%= count %>);                           
                          $j(gridName).editRow(id, true);                           
                          lastsel<%= count %> = id;
                      }                      
                  }

How do I handle the error thrown from MVC controller function to the Jqgrid inline edit.

    Function Edit(ByVal collection As FormCollection) As ActionResult
       Return Content("false")
    End Function

The document says saveRow (rowid, succesfunc, url, extraparam, aftersavefunc, onerrorfunc) . How do I call the onSuccessHandler and onError Handler.

Will pareciate if someone can provide a dummy code.

+1  A: 
saveRow (rowid, onSuccessHandler , url, extraparam, aftersavefunc, onErrorHandler);

onSuccessHandler = function(data) {
}

onErrorHandler = function(data) {
}
Daniel Moura