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 / 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
    153,026 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard