Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Select the last item in a gallery

(0) ShareShare
ReportReport
Posted on by 25

Anybody knows how to "set focus" - select - the last item of a gallery? I have googled and read all posts available (so it seems).

I'm not interested in forms or last submit.

I have a nested gallery with the item property being a GroupByCollection. The collection is grouped by a column with 3 distinct values. My problem is that that when trying to collect this gallery with a ForAll.parent.Allitems and a nested ForAll.child.Allitems, the ForAll doesn't complete all 3 groups. It stops after the first group. It drives me bonkers. But if I select the last row in the gallery (or one of the items sorting under the last group), then it will loop to the bottom. 

 

[I have a template collection to populate the gallery. Then the user interacts with it to rate/score and then I want to collect the results in a new collection.] 

 

Thanks to anyone who can shed some light. 

 

 

 

Categories:
  • anandm08 Profile Picture
    1,936 Super User 2025 Season 1 on at
    Re: Select the last item in a gallery

    hi @avitas  have you try to use Navigate(YourGallery, Last) ?

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,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard