以下是用于编辑rowIndex的接口。但是在ag-grid中编辑floatingTopRow或floatingBottomRow的API是什么呢?我使用的是ag-grid-enterprise评估。
this.gridOptions.api.startEditingCell({
rowIndex: 10, colKey:'column_name'
});提前谢谢。
发布于 2017-07-11 23:31:15
目前在api中看起来还没有直接的方法。Here is a feature request to enhance this function.但是,在该页面上有一种可能的解决方法,您可以使用它。这就是它:
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
}https://stackoverflow.com/questions/44952123
复制相似问题