问题
I am trying to create a table similar to the below figure in Vaadin 7.
Figure: http://i.stack.imgur.com/dvkO1.png
I was thinking of these 3 possibilities. Still I don't have a clarity on what I should go ahead with implementation.
1) Using Column Generator. I referred https://vaadin.com/book/vaadin7/-/page/components.table.html
2) Having a table inside a table item. But I am finding difficulty in creating that also. I am unhappy about the look and feel.
3) Searching for if there is anyway we can merge the cells to form a block.
Any help in this regard, is appreciated.
回答1:
When I have problems with the way the Table component works, it is probably best to no use it at all. You can use a GridLayout instead to show data in the format you need, IMHO.
回答2:
At them moment this is not possible.
Perhaps this will be included in the upcomming 7.4 release. Currently it's in alpha stage, but I think it will be released in 1-2 months.
How to create a complex header in vaadin 7?
来源:https://stackoverflow.com/questions/27331208/how-to-create-a-complex-table-in-vaadin-7-complex-header-is-not-required