Skip to main content

Notifications

Community site session details

Community site session details

Session Id : GzeAuY0y4UrcMgwDG0pCWU
Power Apps - Building Power Apps
Answered

Gallery auto scroll down to last record?

Like (0) ShareShare
ReportReport
Posted on 19 Jan 2023 18:45:06 by 997

Hello,

Is it possible to scroll the gallery down, i use a timer to refresh the collection

And the gallery load the data again, but i see the gallery don't scroll down to the last record it stays at the top 😞

Is this possible? if yes, could you tell me how.

Thank you.

  • TimmyBoy Profile Picture
    997 on 20 Jan 2023 at 00:16:01
    Re: Gallery auto scroll down to last record?

    Hello @LaurensM 

    Thank you, so amazing

  • Verified answer
    LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on 19 Jan 2023 at 18:58:52
    Re: Gallery auto scroll down to last record?

    Hi @TimmyBoy,

     

    Do you always want to automatically hop to the last record in your gallery? In this case, the following functionality will achieve that:

     

    The Default property of your gallery will be:

    Last(DataSource)

    With DataSource I mean the code within the Items property of that gallery.

     

    After refreshing your collection, you can use the Reset(GalleryName) to trigger the default value and make the gallery hop to the last record.

     

    If your gallery sometimes needs to start at the top and sometimes at the bottom. You can dynamically declare this by using a variable in the Default property. This variable can then be set to Set(varDefault, First(DataSource)) or Set(varDefault, Last(DataSource)) to make the gallery start at the top or bottom dynamically. (default property of the gallery would be varDefault)

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

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!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started