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

Start the Gallery on the top

(1) ShareShare
ReportReport
Posted on by

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,297 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
    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,297 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
    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,297 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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard