1

我通过格式化程序操作执行 jqgrid 编辑。当服务器中的编辑验证失败并且我向用户显示错误时,我想保持在编辑模式并保存用户输入的数据。可能吗。请帮忙。

4

1 回答 1

1

您应该使用restoreAfterError: false内联编辑选项。我建议您通过更改内联编辑的默认值来设置选项:

$.extend($.jgrid.inlineEdit, {
    restoreAfterError: false
});

restoreAfterError或者,您可以设置formatoptions

formatter: "actions", formatoptions: {restoreAfterError: false, keys: true, ...}
于 2014-11-06T09:59:44.800 回答