【发布时间】:2016-10-15 09:50:24
【问题描述】:
我像这样向 ag-grid 添加了自定义列
this.columnDefs.push( {headerName: "Action Status", cellStyle:{"text-align":"center"}});
如何在运行时更改该列的单元格值?
我尝试了这个解决方案,但不起作用
this.gridOptions.api.forEachNodeAfterFilterAndSort(function (rowNode:RowNode) {
rowNode.columnController.originalColumns[1].colDef.headerCellTemplate="test"
});
this.gridOptions.api.softRefreshView();
this.gridOptions.api.refreshView();
【问题讨论】:
标签: ag-grid