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

Community site session details

Session Id : vPnbpxpJ3dMa4R6bGCXCqz
Power Apps - Building Power Apps
Unanswered

Gallery item selected always jumps to the top

Like (1) ShareShare
ReportReport
Posted on 17 Feb 2023 17:23:14 by 11

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
    151,827 Most Valuable Professional on 17 Feb 2023 at 20:54:22
    Re: Gallery item selected always jumps to the top

    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 31 Jul 2024 at 21:22:54
    Gallery item selected always jumps to the top
    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 27 Oct 2025 at 12:08:14
    Gallery item selected always jumps to the top
     
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 714 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 419 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard
Loading complete