Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Gallery item selected always jumps to the top

(1) ShareShare
ReportReport
Posted on by 183

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:
  • JE-31071700-0 Profile Picture
    on at
    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)
     
  • WarrenBelz Profile Picture
    146,670 Most Valuable Professional on at
    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

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard