jqGrid:双击替换单击进入单元格编辑模式 [英] jqGrid: replace single click with double click to enter cell edit mode

查看:156
本文介绍了jqGrid:双击替换单击进入单元格编辑模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 jqGrid中的单元格编辑模式,默认行为是在单元格被单击时或者如果选择了该单元格并按下回车键的情况下进入单元格的编辑模式。

Using cell edit mode in jqGrid, the default behaviour is to enter edit mode on a cell whenever that cell is clicked or if that cell is selected and the enter key is pressed.

有没有办法改变这种行为这样,单击一下就不会将其置于编辑模式,但双击确实如此?在输入时进入编辑模式很好。

Is there a way to change this behaviour so that a single click does not place it in edit mode but a double click does? Entering into edit mode on enter is fine.

推荐答案

直接它不受单元格编辑模式支持,但在我看来,您可以采用与内联编辑相同的方式自行实现(参见 jqGrid - 仅编辑可编辑列的某些行,例如)。你不应该将 c> c> c> c> c> c c> c> c> c> c> c> c> c> c> c> c> c> c c> c> editCell 在 http: //www.trirand.com/jqgridwiki/doku.php?id=wiki:cell_editing#methods

Directly it is not supported by the cell editing mode, but it seems to me, that you can implement it yourself in the same way as for inline editing (see jqGrid - edit only certain rows for an editable column, for example). You should don't set cellEdit parameter of jqGrid to true, but use directly cell editing methods like editCell described in http://www.trirand.com/jqgridwiki/doku.php?id=wiki:cell_editing#methods.

另一种方法是在double上使用内联编辑 - 单击而不是单元格编辑。

Another way is to use inline editing on double-click instead of cell editing.

这篇关于jqGrid:双击替换单击进入单元格编辑模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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