user1053031 user1053031 - 2 months ago 33
CSS Question

Vaadin. Multiselect grid showing selected checkbox when empty

i'm using 7th Vaadin and see the following issue: when grid is empty its multiselect checkbox is turned on:

enter image description here

How can one fix it?

Thanks.

Answer

It seems i can turn off this checkbox using JavaScript directly:

String js = "document.getElementById(\"gwt-uid-16\").checked = false;";
Page.getCurrent().getJavaScript().execute(js);

The main possible issue here is the path to the checkbox, especially when there are multiple grids located on the page.

Comments