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.
"Select All"-Checkbox in Grid
Hi,
is there any possibility to change the state of the "Select All"-Checkbox programmatically?
My filters are working with backend beans, so I'm basically replacing the contents of the Container by the filtered entities.
Greetings,
Pete
Hi,
I'm not exactly sure what you mean, but does the method com.vaadin.ui.Grid.MultiSelectionModel.selectAll() and deselectAll() not work for you? Or do they not update the select all checkbox properly?
-tepi
They do work for me. I need to get in control of the checkbox which renders into the table if MultiSelection is allowed. It's state gets out of sync with the selection on replacing the items within the container.