Vaadin 8 - Grid - How to add Settings menu?

Hi All,

Id like to add a Settings menu to the grid like in the demo https://demo.vaadin.com/sampler/#ui/grids-and-trees/grid/features However there is no source code for it on the demo page. Could please somebody share the necessary code sample?

I’m pretty sure its just:

grid.getColumns().stream().forEach(column -> column.setHidable(true)); You can see parts of the source for the example by clicking on the “(i)” icon (top right) and then on “Source”.

Thank you very much! This is it.

So this control is for hiding/unhiding columns only. I had a feeling that it’s possible to add custom menu items there so looked for explicit declaration.