Ag grid 编辑';浮动';Ag网格中的行

Ag grid 编辑';浮动';Ag网格中的行,ag-grid,Ag Grid,下面是编辑行索引的api。但是,在ag网格中编辑floatingTopRow或floatingBottomRow的API是什么。我使用ag网格企业评估 this.gridOptions.api.startEditingCell({ rowIndex: 10, colKey:'column_name' }); 提前感谢。现在api中似乎没有直接的方法。不过,在该页面上,您可以使用一种可能的解决方法。这是: let gridCell = api.getFocusedCell(); (<a

下面是编辑行索引的api。但是,在ag网格中编辑floatingTopRow或floatingBottomRow的API是什么。我使用ag网格企业评估

this.gridOptions.api.startEditingCell({
  rowIndex: 10, colKey:'column_name'
});

提前感谢。

现在api中似乎没有直接的方法。不过,在该页面上,您可以使用一种可能的解决方法。这是:

let gridCell = api.getFocusedCell();
(<any>api).rowRenderer.startEditingCell(gridCell, null, null);
var gridCell = {
    column: {} // the column of the cell that needs to be edited 
               // use gridOptions.columnApi.getColumn('column_name') to get the column,
    floating: "" // either "top" or "bottom" or null,
    rowIndex: 0 // integer value of row to edit
}