# Example of using scrollToIndex with a v-data-table-virtual table in Dashboard-2

**URL:** <https://discourse.nodered.org/t/example-of-using-scrolltoindex-with-a-v-data-table-virtual-table-in-dashboard-2/102055>\
**Category:** General\
**Tags:** dashboard-2\
**Created:** [4 November 2026 15:30 UTC](https://discourse.nodered.org/t/example-of-using-scrolltoindex-with-a-v-data-table-virtual-table-in-dashboard-2/102055 "2026-11-04T15:30:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter.courcoux](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@peter.courcoux](https://discourse.nodered.org/u/peter.courcoux)\
**Post date:** [4 November 2026 15:30 UTC](https://discourse.nodered.org/t/example-of-using-scrolltoindex-with-a-v-data-table-virtual-table-in-dashboard-2/102055/1 "2026-11-04T15:30:25Z")

</div>

I have a working v-data-table-virtual which displays a moving window of time series data over a much larger dataset. I would like to use scrollToIndex(index, 'start') from the API to scroll an item to the top of the window. Has anyone got an example of this that they could share. I'm using Node-red 5.0.7 and Dashboard-2. Any help will be much appreciated.
