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?
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