How to set a scroll position on Table

Hi !

I would like to know if there is a way to set a scroll position on Table component ?

Thanks !

Hi!

Yes, with
setCurrentPageFirstItemIndex()
you can set the position with a numeric index. With
setCurrentPageFirstItemId()
you can set the position with an item ID.

Thanks ! :slight_smile:

Oh, just one thing to remember. The
setPageLength()
method resets the current scroll position to 0, so you have to set it after that. I’m not quite sure why it resets it, maybe it makes rendering more simple or something.