getRowIndex or position of child row?


i’m trying to figure out how to determine the row index of a given row that is a child, say of the 2nd parent.

calling grid.getRowIndex(id) returns the index, for the whole grid.

Say 1st parent has 4 children, and the following 2nd parent has 2 child rows. Now calling grid.getRowIndex() on the last row will return 8.

is there a way to to call a grid.getRowIndex that returns only the position of the child?

in this case, last row will return 1 (0 for the 1st child, 2 for the 2nd child)?


In TreeGrid you can use getLevel(rowId) method. … t_getlevel