Gets the indices of selected rows.
Namespace: MindFusion.DataViews
File: Grid.js
SyntaxJavaScript
Copy Code
|
|---|
get selectedRowIndices() {} |
Array. An array of indices.
ExampleThe 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); } |
See Also