:: Forum >> Version 2 >>

Set NO rows selected

More information on this topic is available in the documentation section: /aw.ui.grid/selected-rows.html.

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

Post a reply:

Text:
Name:

Back to /aw.ui.grid/selected-rows.html

Documentation:

Forum search