Grid: get index of top visible row

Hello,

I’m using one vaadin-grid instance to displaying several datasets. I switching between the data with tabs and set the grid.items, and grid size values.

It works very well for my but now I want to save the current visible rows before switching the dataset so I can view the same data when I’m come back using scrollToRow(index, “start”).

Is there any posiibility to get the current index of the first visible row?

Kind Regards

Rafael.

Hi Rafael,

That info should be available internally at least, but we are not exposing that info in the public API. Seems like a valid feature request, so can you
open a new issue in GitHub
, and we can continue the discussion there. Thanks!