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 / Start the Gallery on t...
Power Apps
Answered

Start the Gallery on the top

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a long gallery and I often scroll down. If I change the screen and then if I come back, I want that the gallery is on the top so that I can't scroll up. How can I do that?

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    In your OnVisible action of the Screen, place the following:  Select(yourGallery, 1)

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RandyHayes 

    This doesn't work brilliant. I ge this error: The function "Select" has invalid arguments. I change the screen with a component. I design this in a component library, maybe this is important.

     

    Edit: I notice that I use my Collection instead of my gallery, but I create this gallery in my component libary. 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    No entirely following you, but I am surmising that you are saying the Gallery is in a component?!

    If so, then you need to put this logic into your component.

    There is no clear way to go about it in the component except to perhaps utilize the OnReset action in the component and place the Select formula there.  Then, create a Parameter on the component like Reset and set the "raise OnReset when value changes".

    Then, in your app in the OnVisible, change the Reset property of the component to fire off the Select inside of your component.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I try to do this here in the OnReset from my Component: Select(galNavigation; 1) but I get this same error like before: The function "Select" has invalid arguments.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Apparently the Select function does not work the same in a Component as it does in the app!

     

    You can instead put Reset(yourGallery) in the OnReset action of the component and then set the Default of the Gallery to the first record in your items.

    Then the property you have that raises the reset, will cause the Gallery to reset and it will then go to the default item...the first one.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 883

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 477

Last 30 days Overall leaderboard