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 / Gallery item selected ...
Power Apps
Unanswered

Gallery item selected always jumps to the top

(1) ShareShare
ReportReport
Posted on by 12

Hi there,

 

does anyone knows how to surpress PowerApps to jump to the top when an Item is selected in a Gallery?

 

Thanks a lot. 

 

Klaus 🙂 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,928 Most Valuable Professional on at

    Hi @BHS_KI ,

    This is the normal behaviour of a gallery - you would have to set the Default of the Gallery to the item you want to be at the top, so for instance (I assume you are using SharePoint) it would be a Lookup on the list forming the gallery with the ID of the last record selected (which you could update as the user selects a record). Initially it would be the first ID in the Items of the list.

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

     

  • JE-31071700-0 Profile Picture
    on at
    I realize this is an older post, but I didn't find a satisfactory answer when searching this morning, so if it helps anyone to know of a workaround, here's what I found...
     
    I noticed the same behavior, and I also noticed that tutorial videos from a couple years ago did not exhibit this behavior.  I'm new to Power Apps, but since I had the same problem, I played around to figure out a workaround.  If the Defaults property is set to {} this behavior goes away.  Anything else in the Defaults property seems to reintroduce the (rather annoying) behavior.  I am using the technique featured in this video https://www.youtube.com/watch?v=691pRyRHWBU&t=1s  from Shane Young to set varRecord, and using this variable in the Template Fill property.  The appearance of a selected Gallery item can be simulated, if necessary, by setting varRecord to a particular record (if it is not already set to that record) and the FontWeight property on the individual text items in the gallery that normally appear in Semibold when selected as follows:
    If(ThisItem.ID=varRecord.ID, FontWeight.Semibold, FontWeight.Normal)
     
  • AH-27101159-0 Profile Picture
    2 on at
     
    Setting gallery default to {} does the trick. It seems just leaving it empty also works.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard