Quick Scroll Up in Table button

Hello,
I want to create a button so I can quickly scroll up in the table (it is a scrollable table without pagination).
I don't want to scroll to the top of the entire page, but specifically scroll up inside the Table. Somehow I didn't manage to make it work :sweat_smile:
Any suggestions?

Have you tried the scrollToRow function of the new table?
mytable.scrollToRow({mode: 'index', indexType: 'display', index:0})

1 Like

Thanks, I did but somehow it did not work.
For now I solved it with by adding an Event Handler to the button, however I was not really satisfied;

Schermafbeelding 2023-07-03 134518

It worked, but , I decided to add the 'scroll up' component to the Toolbar of the Table instead. As I did not want to make the Table smaller in width only for that scroll up button (could not place the button on top of the table).

I created an empty JS query linked to the Costum Toolbar button with the above mentioned Event Handler.

1 Like