onSelectRow: function(id) {
if (id && id !== lastsel<%= count %>) {
$j(gridName).restoreRow(lastsel<%= count %>);
$j(gridName).editRow(id, true);
lastsel<%= count %> = id;
}
}
如何处理从MVC控制器函数抛出到Jqgrid内联编辑的错误。
Function Edit(ByVal collection As FormCollection) As ActionResult
Return Content("false")
End Function
该文件说saveRow (rowid, succesfunc, url, extraparam, aftersavefunc, onerrorfunc)
。如何调用onSuccessHandler和onError Handler。
如果有人可以提供虚拟代码,那么会很糟糕。
答案 0 :(得分:1)
saveRow (rowid, onSuccessHandler , url, extraparam, aftersavefunc, onErrorHandler);
onSuccessHandler = function(data) {
}
onErrorHandler = function(data) {
}