Gets the indices of selected rows.
Namespace: MindFusion.DataViews
File: Grid.js
JavaScript Copy Code |
---|
get selectedRowIndices() {} |
Array. An array of indices.
The following code gets the first row from the rows that are selected or the first row in the Grid, if no rows are selected:
JavaScript Copy Code |
---|
if (grid.selectedRowIndices.length) { var selectedRow = Math.max(grid.selectedRowIndices[0] - 1, 0); } |