Reputation: 724
I'm using vaadin 14 TLS. I need to show data in a grid. Everything works fine on the desktop version however, on the mobile devices, column headers are so narrow and they are not readable as only some initials are shown, and there are many columns. The grid itself fits in the page width, so i can scroll to the right and to the left, however, i want each column to take up more space so that each column header is readable without shortened. Any tips will be appreciated.
Upvotes: 0
Views: 274
Reputation: 724
grid.getColumns().forEach(e -> e.setAutoWidth(true));
does the trick.
Upvotes: 1