0
votes

does enyone know does agGrid autoHeight column property works for cellRendererFramework in ag-grid-angular?

I've tried this but for me it's not working https://www.ag-grid.com/javascript-grid-row-height/#auto-row-height

This is my column config

{
    headerName: 'Custom title',
    field: 'title',
    cellRendererFramework: CustomTitleCellComponent,
    autoHeight: true,
    cellClass: 'ag-table-cell-auto-height'
  }

CustomTitleCellComponent has different height depending on it's content

Css style for column

.ag-table-cell-auto-height {
  white-space: normal;
}

Does anyone know is it possible to use autoheight with ag-grid-angular for cellRendererFramework ?

1

1 Answers

0
votes

No, you can't do this for an editor. You have to configure the column for auto row height. See the official documentation at https://www.ag-grid.com/javascript-grid-row-height/#auto-row-height