web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / On Click Scroll to top...
Power Apps
Unanswered

On Click Scroll to top of the gallery

(0) ShareShare
ReportReport
Posted on by

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

Categories:
  • LRVinNC Profile Picture
    2,297 on at

    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:  https://powerusers.microsoft.com/t5/General-Discussion/Go-to-Top-part-of-screen/td-p/90877

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    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

     

    6.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:

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

    On your side, you should type:

    If(
      IsReset,
      'Type your Gallery Items formula here'
    )

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

    Set(IsReset, false);
    Refresh('20190325_case13');
    Set(IsReset, true)

    On your side, you should type:

    Set(IsReset, false);
    Refresh('YourDataSource');
    Set(IsReset, true)

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

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

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

     

    Thank you,

     

    @Anonymous 

  • JADANL123 Profile Picture
    26 on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard