Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Adding a simple checkbox into a Grid
I am having trouble adding a checkbox into a grid column: I am using the add-on "Grid Renderers collection For Vaadin7", but is bot behaving the way I need it...
What would be the simplest way to add a CheckBox into a column of a Grid? I need only basic functionality: like in the Valo example for table (when the check box "Components in Cells" is selected) : https://demo.vaadin.com/valo-theme/#!tables
Thank you for any help...
Something like this?
IndexedContainer ic = new IndexedContainer();
ic.addContainerProperty("columnId", Boolean.class, false);
Item i = ic.addItem(new Object());
Grid grid = new Grid(ic);
grid.getColumn("columnId").setRenderer(new CheckboxRenderer());
grid.setColumnReorderingAllowed(true);
grid.setEditorEnabled(true);
layout.addComponent(grid);
Be sure you compile and deploy your widgetset before you attempt to use the Grid Renderers add-on, as the client side will not work without this.