Ag grid groupSuppressAutoColumn不使用动态columnDef-ag栅格角度
我正在尝试使用“agGroupCellRenderer”创建自定义行分组。但使用“行组”面板拖动功能创建新行组后,栅格数据将消失 我正在尝试更新columnDefAg grid groupSuppressAutoColumn不使用动态columnDef-ag栅格角度,ag-grid,ag-grid-angular,ag-grid-grouping,Ag Grid,Ag Grid Angular,Ag Grid Grouping,我正在尝试使用“agGroupCellRenderer”创建自定义行分组。但使用“行组”面板拖动功能创建新行组后,栅格数据将消失 我正在尝试更新columnDef columnRowGroupChanged(event) { this.columnDefs = [ { headerName: 'Country', minWidth: 200, showRowGroup: 'country', cellRenderer: 'agGroupCellRender
columnRowGroupChanged(event) {
this.columnDefs = [
{
headerName: 'Country',
minWidth: 200,
showRowGroup: 'country',
cellRenderer: 'agGroupCellRenderer',
},
{
headerName: 'Year',
minWidth: 200,
showRowGroup: 'year',
cellRenderer: 'agGroupCellRenderer',
},
{
headerName: 'athlete',
minWidth: 200,
showRowGroup: 'athlete',
cellRenderer: 'agGroupCellRenderer',
},
{
field: 'country',
rowGroup: true,
hide: true,
},
{
field: 'year',
rowGroup: true,
hide: true,
},
{
field: 'athlete',
rowGroup: true,
hide: true,
},
{ field: 'gold' },
{ field: 'silver' },
{ field: 'bronze' },
];
}