3.0 beta 2

Set NO rows selected

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

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

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

var a = grid.getSelectedRows();

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

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.