8

How can I unselect all rows in a Slick Grid?

I'm using RowSelectionModel and can't find a way to do it.

Thanks

rgomesf
  • 702
  • 1
  • 10
  • 20

2 Answers2

8

Old question, but this worked for me:

grid.setSelectedRows([]);

From the official API

madth3
  • 7,275
  • 12
  • 50
  • 74
5
grid.getSelectionModel().setSelectedRanges([]);
Botz3000
  • 39,020
  • 8
  • 103
  • 127
Tin
  • 9,082
  • 2
  • 34
  • 32
  • 1
    If you have only one row, sometimes the highlight disappears, but if you try to click in the row you can't select it again. It is like the row is already selected, but not highlighted... Can I remove focus from a row? – rgomesf May 22 '12 at 09:06