selectAll() for DataGrid doesn't work?

I created a form with DataGrid component with selectionMode=MULTI_CHECK and want to select all it’s rows from the start, but it appears that selectAll() works with selectionMode=MULTI only.
I tried to call the selectAll() method in postInit() and in StateChangeListener of DataGrid’s DataSource and got no result.
How can I do it right?

In addition to the question: how can I make grids’ rows unabled to select by some criteria?

Hi,

the problem is fixed in Platform 6.8.3. See the issue.

Thank you, Gleb. And what about my additional question, can I prevent row selection by some criteria?

Unfortunately, there is no easy way to restrict row selection. As a workaround, I would recommend you to use SelectionListener and deselect rows accordind to some criteria.