grid.scrollTo() does not accept beans

Hi there. I’m using Vaadin 8. The Grid.scrollTo() only accepts row indexes but the Grid API does not provide any way to retrieve a row index by a bean. So I don’t see any way to scrollt to a specific bean. Any ideas?

Perhaps a bit hackish but if you have the original data in a List and do an indexOf, it should match the grid row (as long as it hasn’t been sorted, I guess)