:: Forum >>

Set NO rows selected

Is possible to cancel the selection of a row? Anything like grid.setSelectedRows(null)?
Fily84
Thursday, July 31, 2008
You should use empty array instead of null -

grid.setSelectedRows([]);
Alex (ActiveWidgets)
Thursday, July 31, 2008
Thanks! :D
Fily84
Friday, August 1, 2008
Sorry :) but I got another question:

what does getSelectedRows() returns when there is no row selected?
Fily84
Friday, August 1, 2008
Empty array - []
Alex (ActiveWidgets)
Friday, August 1, 2008
So how could i check it in an hypotethical conditional statement?
Fily84
Friday, August 1, 2008
you can check array length to find how many rows are selected.

var a = grid.getSelectedRows();

if (a.length > 0) {
...
}
Alex (ActiveWidgets)
Friday, August 1, 2008
Thanks again !!!
Fily84
Monday, August 4, 2008

This topic is archived.


Back to support forum

Forum search