2

I want to add a table to my vaadin application with the following layout:

enter image description here

Is it possible to create multirow cells on Vaadin tables as you can see on the picture?

Thanks, Cris.

crigore
  • 400
  • 5
  • 23
  • Possible duplicate of [Table merge cells - Vaadin](http://stackoverflow.com/questions/32694324/table-merge-cells-vaadin) – Morfic Jul 11 '16 at 09:16

1 Answers1

1

Per my knowledge, this is not possible so far neither with the table nor with the grid. As you'll notice in those 2 linked questions and the docs, while the grid allows for some header merging/joining, the table does not have any similar functionality. However, in the first question there is a suggestion on how to simulate what you're looking for, using grid layout.

Community
  • 1
  • 1
Morfic
  • 15,178
  • 3
  • 51
  • 61
  • Thanks for answering, I've seen thos questions. However, I need that the rows can be selected, and I'm not sure if I can simulate that with the grid layout approach. – crigore Jul 11 '16 at 09:21
  • 1
    @crigore No problem. You may be able to simulate it using `LayoutClickListener` and some CSS but you did not specify what the selection behaviour is. Depending on how it should look like, you could probably find another workaround, for example creating a new table in the grid layout for each of the 3 items in the group (maybe overkill but still a workaround). However the answer to your question is still _no, there's no easy way to do this with the regular table and/or grid_ – Morfic Jul 11 '16 at 09:50