Grid and items selection with CheckBoxes

Dear friends!
I try to use new Grid component appear with one of new versions of Vaadin. I use SelectionMode.MULTI and added into my grid about 6K items, all of them added successfully. But if I try to select all clicking on header checkbox grid selecting only first 1000 nodes… How to fix such behavior or, may be, overload event of header click on check box and do it manually in code.
Thank You for attention !

Hi Alex.

You have to create a new MultiSelectionModel and change the selection limit there. After this, apply this multiselectionmodel to your grid.

Code (hopefully correct)

MultiSelectionModel myMultiSelectionModel = new MultiSelectionModel();
myMultiSelectionModel.setSelectionLimit(10000);


myGridComponent.setSelectionMode(SelectionMode.MULTI);
myGridComponent.setSelectionModel(myMultiSelectionModel);

Hope this helps.