getCheckedRows() |
It returns an array containing the visible rows of a table for which the check box is selected.
Syntax
Script | oRowsArray = tableID.getCheckedRows() |
Return Value
Returns an array comprising visible rows that are checked in the table.
Remarks
The index specified by the index property of the row matches the index returned by the getIndex() method of the table.
Example
The following sample demonstrates how to verify whether the selected row is checked in the table.
var checkedRows = table1.getCheckedRows(); var selectedIndex = table1.getIndex(); for (var i = 0; i < checkedRows.length; i++) { if (checkedRows[i].index == selectedIndex) { alert("row selected : " + selectedIndex); } }