I attempted to utilize this solution, however, it is not functioning properly for me. While it does resize the column height correctly, the text is still not wrapped as expected.
Ag-Grid - Row with multiline textlet gridOptions = {
columnDefs: columnDefs,
rowSelection: 'multiple',
enableColResize: true,
enableSorting: true,
enableFilter: true,
enableRangeSelection: true,
suppressRowClickSelection: true,
animateRows: true,
onModelUpdated: modelUpdated,
debug: true,
autoSizeColumns: true,
getRowHeight: function(params) {
// assuming 50 characters per line, calculating how many lines are needed
return 18 * (Math.floor(params.data.zaglavie.length / 45) + 1);
}
};
function generateRowData() {
return gon.books;
}