[英]disable/hide confirm dialog box when deleting row from jqgrid
I am new to jqGrid and am looking to remove the confirm dialog box when deleting a row in jqGrid.我是 jqGrid 的新手,我希望在删除 jqGrid 中的一行时删除确认对话框。 I have looked through the jqGrid code and documentation and don't seem to see anything that allows this behavior.
我查看了 jqGrid 代码和文档,似乎没有看到任何允许这种行为的东西。 Is this something that would be posssible?
这是可能的吗?
I am not familiar with jqgrid, but I took a look at the documentation and had some thoughts.我对 jqgrid 不熟悉,但我看了看文档并有了一些想法。
beforeShowForm
to cancel the dialog?beforeShowForm
取消对话框?afterShowForm
to programatically click confirm.afterShowForm
以编程方式单击确认。 Then perhaps use CSS so that the user never sees the dialog in the first place. As stated I don't see an option in their docs to disable confirmation dialogs.如前所述,我在他们的文档中没有看到禁用确认对话框的选项。
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing&s[]=delete&s[]=row http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing&s[]=delete&s[]=row
Instead of using a built-in delete button, you could always add a custom delete button, and then add whatever logic you need, which would include not displaying a confirmation dialog.您可以随时添加自定义删除按钮,而不是使用内置删除按钮,然后添加您需要的任何逻辑,其中包括不显示确认对话框。 See the Custom Buttons section in the documentation wiki to get started.
请参阅文档 wiki 中的自定义按钮部分以开始使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.