Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我通过格式化程序操作执行 jqgrid 编辑。当服务器中的编辑验证失败并且我向用户显示错误时,我想保持在编辑模式并保存用户输入的数据。可能吗。请帮忙。
您应该使用restoreAfterError: false内联编辑选项。我建议您通过更改内联编辑的默认值来设置选项:
restoreAfterError: false
$.extend($.jgrid.inlineEdit, { restoreAfterError: false });
restoreAfterError或者,您可以设置formatoptions:
restoreAfterError
formatoptions
formatter: "actions", formatoptions: {restoreAfterError: false, keys: true, ...}