Search code examples
javacssvaadinvaadin7vaadin-grid

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.


Solution

  • 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.