Search
Grid.selectedRowIndices Property
See Also
 






Gets the indices of selected rows.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

get selectedRowIndices() {}

 Property Value

Array. An array of indices.

 Example

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);
}

 See Also