Is there a possibility to scroll table to certain point? The case is that row header click redirects user to object details view, the object id is saved to sessionStorage like so:
After coming back to the hot-view, the table has to scroll to the same row where user last clicked off.
I was thinking about using [afterLoadData] but I can’t get the physical location of sourceRow, after which I should use ‘selectCell’ plugin?
the selectCell is a good way to scroll the viewport. You also have the scrollViewportTo method. I’m just not sure about the afterLoadData. Do you update data in Handsontable after you save into sessionStorage?
used afterInit and calling scrollToPrevious function. But I think hotTable.scrollViewportTo(previousSelected, 0);
may not be linked on the same table instance? At the moment it doesn’t throw error or anything, but does not scroll to row “previuosSelected” also.
logging (hotTable.scrollViewportTo(previousSelected, 0)) returns true, so it should be able to scroll?