# How can I reset ScrollView to top from javascript

**URL:** <https://forums.fusetools.com/t/how-can-i-reset-scrollview-to-top-from-javascript/874>\
**Category:** How-to Discussions\
**Created:** [March 26, 2016, 6:11pm UTC](https://forums.fusetools.com/t/how-can-i-reset-scrollview-to-top-from-javascript/874 "2016-03-26T18:11:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyawlay.it](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@kyawlay.it](https://forums.fusetools.com/u/kyawlay.it)\
**Post date:** [March 26, 2016, 6:11pm UTC](https://forums.fusetools.com/t/how-can-i-reset-scrollview-to-top-from-javascript/874/1 "2016-03-26T18:11:45Z")

</div>

When after scrolling down and filter items, then ScrollView is not going to top automatically. how can I reset scroll position to top on filtering items.

```auto
            <DockPanel >
                        <ScrollView>
                    <StackPanel>
                        <Each Items="{items}">
                            <UserItem />
                            </Each>
                        </StackPanel>
                    </ScrollView>
                </DockPanel>

```

---

<div class="post-metadata">

**Author:** ![Edwin\_Reynoso](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@Edwin\_Reynoso](https://forums.fusetools.com/u/Edwin_Reynoso)\
**Post date:** [March 27, 2016, 1:23am UTC](https://forums.fusetools.com/t/how-can-i-reset-scrollview-to-top-from-javascript/874/2 "2016-03-27T01:23:09Z")

</div>

I don’t think its possible just yet to control that through javascript, but you can do:

```auto
<ScrollView ux:Name="scrollView"></ScrollView>

<SOMETRIGGER>
  <Set Target="scrollView.ScrollPosition" Value="0" />
</SOMETRIGGER>

```

Where `<SOMETRIGGER>` is some type of trigger like `<Clicked>` or `<WhileTrue>`
