vaadin / framework

Vaadin 6, 7, 8 is a Java framework for modern Java web applications.
http://vaadin.com/
Other
1.78k stars 730 forks source link

Feature: Grid: Ability to hide row and show the row details only #10879

Open lubomirmatus opened 6 years ago

lubomirmatus commented 6 years ago

I would like to propose new feature for Grid.

Grid can show row details for selected rows using grid.setDetailsVisible(row, true).

It would be fine that whole row can be hidden and the row details are shown instead of row. E.g. grid.setRowVisible(row, false).

This feature can be interesting for custom-rendered-row-grid when you can hide all rows and show the data in details with custom layout.

TatuLund commented 4 years ago

can hide all rows and show the data in details with custom layout.

You cannot hide one specific row now. But you can set the body row height to be 1. That practically does the above.

Ansku commented 4 years ago

Because Grid doesn't support variable row heights, the trick Tatu mentioned is as good as it's likely to get. Neither the details row handling nor the row positioning nor scrolling logic would manage gracefully any attempt to hide just one row. And implementing support for variable row heights would not be trivial in the least.