简体   繁体   English

jqGrid:在进行内联编辑之前确认对话框?

[英]jqGrid: confirm dialog before submit in inline editing?

How can I show a custom confirm dialog after user press ENTER after inline edit, before submit to the server? 在内联编辑后,在用户提交到服务器之前按ENTER键后,如何显示自定义确认对话框? I found similar old questions here (2010/2011), but maybe there are new functions/events to solve this. 我在这里(2010/2011)找到了类似的旧问题,但也许有新的功能/事件可以解决此问题。

I need to give the user the chance to read some alert, and decide to SAVE or CANCEL edition. 我需要让用户有机会阅读一些警报,并决定保存或取消版本。

NOTE: I know how to use ui.dialog, that's not my question. 注意:我知道如何使用ui.dialog,这不是我的问题。 It's about jqGrid events callbacks. 关于jqGrid事件回调。 Thanks! 谢谢!

(my version is Free jqGrid 4.13.7-pre) (我的版本是免费的jqGrid 4.13.7-pre)

In Guriddo jqGrid we have added two events in editRow (inline editing method) onEnter and onEscape Guriddo jqGrid中,我们在editRow(内联编辑方法) onEnter和onEscape中添加了两个事件

This way it is possible to call your own pop up window and use saveRow or/and restoreRow methods on condition. 这样就可以调用自己的弹出窗口,并在有条件的情况下使用saveRow或/和restoreRow方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM