SMART datagrid v.1 > Classes > GridRow

Back  Forward

DataLudi.GridRow.index  property

The display order in grid. 

The row not being displayed, such as the collapsed state of parent row or the excluded row in Filtering, will return -1. The value of the first row displayed in grid is 0. In other words, this value will have the value between 0 and rowCount - 1. 

Defaults to -1.

Getter
function index(): Integer
Code -1
    $('#getIndex').click(function () { 
        var rowIndex = grid.focusedRow().index();
        console.log(rowIndex + " th row.");
    };
See Also
isVisible
rowCount
Examples
Row Indicator