1

Using Vaadin 8.0.7, is it somehow possible to rotate the column headers in a grid, like in this excel screenshot below?

table

The code I have so far (edit: code was extracted from the original inlined image)

final VerticalLayout layout = new VerticalLayout();
private Grid<Customer> grid = new Grid<>(Customer.class);

grid.setColumns("datum", "lastName");
HorizontalLayout main = new HorizontalLayout();
grid.getColumn("datum").setWidth(100);
grid.getColumn("datum").setCaption("Datum");
layout.addComponents(toolbar, main);
updateList();

setContent(layout);

Current UI appearance:

enter image description here

Morfic
  • 15,178
  • 3
  • 51
  • 61
Ady96
  • 686
  • 4
  • 12
  • 35
  • Possible duplicate of [Vertical Text Direction](https://stackoverflow.com/questions/4264527/vertical-text-direction) – petey Jul 18 '17 at 19:48
  • @petey this question is about Vaadin, though. It might take several non-trivial steps to adapt css/html solution to Vaadin – default locale Jul 19 '17 at 03:18
  • 1
    @Ady96 you might want to specify which version of Vaadin you're using. If you have a code example (grid/table with regular headers) then post it as well. – default locale Jul 19 '17 at 03:22
  • @defaultlocale check my post now – Ady96 Jul 20 '17 at 12:12

0 Answers0