# Reset Scroll Position When Changing Pages in TreeList

## Environment

<table>
	<tbody>
		<tr>
			<td>Product Version</td>
			<td>13.1.0</td>
		</tr>
		<tr>
			<td>Product</td>
			<td>Progress® KendoReact TreeList</td>
		</tr>
	</tbody>
</table>

## Description

When navigating between pages in the TreeList, the scroll position is not automatically reset. How can I reset the scroll position to the top when the page changes?

## Solution

Use the [`onPageChange`](https://www.telerik.com/kendo-react-ui/components/treelist/api/treelistprops#onpagechange) event to detect page changes and manually reset the scroll position of the TreeList container. Access the TreeList's scrollable container using a ref and set its `scrollTop` property to `0`.

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/treelist/treelist-reset-scroll-during-paging/source.txt)

## See Also

* [TreeList Paging](https://www.telerik.com/kendo-react-ui/components/treelist/paging)
* [TreeList API Reference](https://www.telerik.com/kendo-react-ui/components/treelist/api/treelistprops)
