Vaadin 8 Grid - Wrap Long Lines

Good morning.

I am using Grid to display the search results and noticed that some lines truncated. Attached is the reference.
Could someone tell me how to automatically fit the entire message in one cell?

Thanks in advance.

If you are using Vaadin 8, I recommend to do following. Use Grid.setRowHeight(…) method to set rows sufficiently high to accomodate wrapped text. Text is not automatically wrapped, so you need to set stylename with style generator either for the row or column. There are methods Grid.setStyleGenerator(…) and Column.setStyleGenerator(…) so that you can target the specific cells. Then define suitable style with that stylename in your css, like “word-wrap: break-word;” and “white-space: normal;”.


https://vaadin.com/forum/#!/thread/13828894/13828893/exclusive