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.
vaadin-grid checkbox in rows
I'm using the vaadin-grid element and wondering if there is an example that allows you to add for example three check boxes on each row? And be able to, for each row determine the status of each of the check boxes checked status
Thanks
You could display an icon depending of your boolean value which is much simpler.
Grid.Column myColumn = getColumn("myColumn");
myColumn.setRenderer(new HtmlRenderer(),
new StringToBooleanConverter(FontAwesome.CHECK_CIRCLE_O.getHtml(), FontAwesome.CIRCLE_O.getHtml()));
Hi Eric,
Drafted such an example using the <vaadin-grid> version 1 right here:
https://jsfiddle.net/xgychww3/
We're currently working on <vaadin-grid> 2.0 with which the same example requires a lot less (imperative) code:
https://jsfiddle.net/8oLm1018/
Notice that the new <vaadin-grid> is still a work in progress (not quite production quality yet and API changes are likely)
jcfortier: You could display an icon depending of your boolean value which is much simpler.
Grid.Column myColumn = getColumn("myColumn"); myColumn.setRenderer(new HtmlRenderer(), new StringToBooleanConverter(FontAwesome.CHECK_CIRCLE_O.getHtml(), FontAwesome.CIRCLE_O.getHtml()));
Unfortunately I need the user to be able to check and uncheck the checkbox depending on certain parameters.