slickgrid get index of row by it's id

javascript, slickgrid

Solution

You can use `dataView.getRowById()` to get the index of a filtered grid or you can use `dataView.getIdxById()` to get the index of the ID from the entire set of data.

Problem

Is there a way to get the index of a row (row-index in the visible grid) by it's ID, which will also work with a sorted/grouped grid? I am trying to use the function scrollRowIntoView from Slickgrid, which requires the index of the row. Now my problem is that I know the ID of the row, but not which index the row has in the grid. I also use groups which means I cannot search for the row-index in the data.

Original source