# Set scroll position for dash datatable through callback

**URL:** <https://community.plotly.com/t/set-scroll-position-for-dash-datatable-through-callback/67411>\
**Category:** Dash Python\
**Tags:** question\
**Created:** [August 27, 2022, 2:14am UTC](https://community.plotly.com/t/set-scroll-position-for-dash-datatable-through-callback/67411 "2022-08-27T02:14:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin13601](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@justin13601](https://community.plotly.com/u/justin13601)\
**Post date:** [August 27, 2022, 2:14am UTC](https://community.plotly.com/t/set-scroll-position-for-dash-datatable-through-callback/67411/1 "2022-08-27T02:14:17Z")

</div>

Hello!

Is it possible to set the scroll position (ie. to the very beginning) of a Dash datatable through a callback?

I am refreshing the data of the datatable through a callback updating the ‘data’ prop. However, if the user scrolled down, the scroll position doesn’t change even after returning new data, which can be confusing for the user.

The datatable I currently have is paginated, so I am able to set the page to pg. 1 upon new data. However, I’d like to do the same for the scroll position or row displayed.

Any ideas?
