Is it possible to select multiple rows using the API?
[code]selectedDataIds = DataGrid.getSelectedRowId().split(",");
for(var i = 0; i < selectedDataIds.length; i++) {
DataGrid.selectRowById(selectedDataIds[i]);
}[/code]
The code shown above selects each row of the array one at a time. At the end of the loop, the last row in the array is the only selected row.
Nevermind - the APi answered this question.
[code]selectRowById(row_id, preserve, show, call)
row_id - row id
preserve - {true|false} preserve previously selected (optional, false by default). Multi select mode should be enabled.
show - true/false - scroll row to view (optional, true by default)
call - true if to call onRowSelect function (optional, false by default)[/code]