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

Notifications

Announcements

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:
I have the same question (0)
  • 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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard