jqGrid-如何关注单元格内联编辑 [英] jqGrid - how to focus cell inline editing

查看:73
本文介绍了jqGrid-如何关注单元格内联编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了很多解决方案,但都不行.我有最新的版本4.7.0. 例如:焦点单元内联编辑

I found many solutions, but neither doesn't work. I have the latest version 4.7.0. In example this: focus cell inline editing.

我的解决方法是[代码在coffeescript中]:

My solution is [code is in coffeescript]:

ondblClickRow: (rowId, iRow, iCol, e) ->
        if rowId and rowId isnt lastSelectedRowId
            table.jqGrid 'editRow', rowId, true
            $("input, select, textarea", e.target).focus()
            lastSelectedRowId = rowId

jqGrid并没有妨碍内联编辑期间如何选择单元格?

Doesn't jqGrid have impelemented how to select of cell during inline editing?

关于Oleg的说明:请再次查看我的最新评论

Note for Oleg: Please, look at my last comment again jqgrid (converting datatypes)

推荐答案

我找到了最佳解决方案,但仅适用于4.7.0.版本.

I found the best solution, but only for 4.7.0. version.

咖啡代码,但解决方案有待观察.

ondblClickRow: (rowId, iRow, iCol, e) ->
    if rowId and rowId isnt lastSelectedRowId
        table.jqGrid 'editRow', rowId, {keys:true, focusField: iCol}
        lastSelectedRowId = rowId

这篇关于jqGrid-如何关注单元格内联编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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