Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

On Click Scroll to top of the gallery

My requirement is on click of some icon take the scroll to the top of the screen. Can anyone help me to achieve this.

Thanks in advance

Resident Rockstar
Resident Rockstar

Take a look at this post (with specific references to galleries on the second page of responses) and see if it helps with your specific case:


Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Community Support
Community Support

Hi @lipsita ,

Do you want to scroll to top of your Gallery when you click a Icon button?


Based on the needs that you mentioned, I afraid that there is no direct way to achieve your needs. As an alternative solution, I have made a test on my side, please take a try with the following workaround:5.JPG



Set the OnStart proeprty of the App control or OnVisible property of the first screen of your app to following:

Set(IsReset, true)

Set the Items proeprty of the Gallery to following:

    SortByColumns(Filter('20190325_case13', StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

On your side, you should type:

    'Type your Gallery Items formula here'

Set the OnSelect property of the "Up to Top" button to following:

Set(IsReset, false);
Set(IsReset, true)

On your side, you should type:

Set(IsReset, false);
Set(IsReset, true)

Please check the following GIF screenshot for more details:Test.gif


Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Not applicable

Thanks for posting in the community @lipsita - can you review the above replies and update the thread if they were helpful? 


Thank you,



Advocate I
Advocate I

I tried all of your recommended solutions and it didn't work properly. The solution for me was to just simply reset the gallery by changing the OnVisible property of the screen to Reset(YourGallery). Couldn't find this easy solution anywhere so use it to your advantage. The above mentioned solution is also not recommended for the app performance.

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,728)