I am working with Ag-Grid version 21.1.0 and Angular 8. I am trying row-grouping in ag-grid following the tutorial: https://www.ag-grid.com/javascript-grid-grouping/ I have a field in my data-model as "Short Name" field and I am trying to group by this field by setting "rowGroup"="true" property of corresponding column-def object. A new column called "Group" is created in the Ag-grid but the values for this newly created column are not displayed by the grid.
I am using server side filtering and sorting for the grid and using rowmodeltype="infinite". Kindly help me where I am going wrong.
Update: I am creating a list of column Metadata Objects dynamically. For the specific column by which I want to group the data, I am setting the following attributes:
columnMetaObj.rowGroup = true;
columnMetaObj.enableRowGroup = true;
columnMetaObj.hide = true;
then finally I am setting grid options as follows:
this.gridOptions.columnDefs = this.gridColDataInput.columnDefs;
this.gridOptions.rowModelType = 'infinite';
this.gridOptions.cacheBlockSize = 100;
this.gridOptions.paginationPageSize = 100;