在jqGrid中,你可以双击一行来调出编辑表单吗? [英] In jqGrid, can you double click a row to bring up the edit form?

查看:14
本文介绍了在jqGrid中,你可以双击一行来调出编辑表单吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这个 jqGrid 演示中,当你点击Edit Selected"行"按钮:

In this demo of jqGrid, when you click on the "Edit Selected Row" button:

它会弹出一个编辑表单.

it brings up an edit form.

有没有办法双击网格中的一行来调出相同的编辑表单?

Is there any way to double click on a row in the grid to bring up this same edit form?

推荐答案

可以很简单的实现为

ondblClickRow: function(rowid) {
    jQuery(this).jqGrid('editGridRow', rowid);
}

您还可以使用 editGridRow 文档中描述.例如

you can also use any additional properties of editGridRow described in the documentation. For example

ondblClickRow: function(rowid) {
    jQuery(this).jqGrid('editGridRow', rowid,
                        {recreateForm:true,closeAfterEdit:true,
                         closeOnEscape:true,reloadAfterSubmit:false});
}

这篇关于在jqGrid中,你可以双击一行来调出编辑表单吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆