grid中给单元格设置焦点可以调用grid的editCell (TD cell)
单元格进入编辑状态,受列上定义的editable属性和data的readonly规则影响
具体实现如下:
Model.prototype.button10Click = function(event) { var data = this.comp("bizData1"); var rowID = data.getCurrentRowID(); var grid = this.comp("grid1"); setTimeout(function() { grid.editCell(grid.getCell(rowID, "fSZ")); }, 5); };
评一波