Ag-Grid - Row with multiline text

Viewed 14375

I'm using Angular Grid (version 1.16.1) and I need to show a long text inside a table and I want that row height would be adjusted by the content, breaking line if necessary.

I've tried:

  • sizeColumnsToFit method, expecting that ag-grid could resize column by its content;

  • setRowStyle method at gridOptions: I've added CSS classes to adjust roe height by the content (e.g: 'word-wrap':'break-word');

  • minWidth and width: I've calculated the average column size but ag-grid didn't respect it;

  • cellStyle at gridOptions: on the same way as "setRowStyle", but CSS classes didn't gave me any success;

Does anyone has another suggestion?

1 Answers
Related