I just followed the instructions to build a grid using array data.But I found a weird behavior. When clicking the table header to sort,the grid selects all the datas automatically.
The only differences between the example and my test webpage is grid content.All rows have the same data in my grid.
I guess it must be a bug. When the grid is holding the same rows and receving a request to sort the data, it selects all datas.
The grid's selection are maintained by row id. If you don't implement getRowId on the data model, it by default uses the value in column 0. There another thread on this with an example, search for getRowId.