SMART datagrid v.1 > Classes > GridRow

Back  Forward

DataLudi.GridRow.childIndex  property

The location of this row within Parent Row. It is the value between 0 and parent.count() - 1. If not contained in parent row, it will return -1. 

Defaults to -1.

Getter
function childIndex(): Integer
Code -1
    $('#getChildIndex').click(function () {
        var childIndex = grid.focusedRow().childIndex();
        alert("This row is " + childIndex + " th child row.");
        
    };
Note
See Also
parent
count
Examples
Row Grouping