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 scroll to defa...
Power Apps
Unanswered

Gallery scroll to default item (Flexible height)

(0) ShareShare
ReportReport
Posted on by

I am building a chat bot and using a gallery to display the conversation. I opted to use the flexible height gallery, so that the height of each text box is only as tall as it needs to be. However, the issue that I am running into is the gallery not scrolling to the default item.

When the user types in their question and clicks the SEND button, the user's question and the bot's response are stored in a local collection using the Collect() formula. Next, a context variable is updated with a unique id, UpdateContext({myGalleryPosition: Last(collectionName).UID}). Then, the gallery's default property is set to First(Filter(chat, UID = myGalleryPosition)). So, the default property is updated, however the gallery does not seem to select that record and scroll accordingly?

SIDE NOTE: If I follow this same process using a normal gallery, the gallery scrolls to the default record. however, when using a normal gallery, then the issue becomes dealing with the improperly sized gallery items due to fixed template size on all gallery items.

Does the default property work the same for a normal gallery as it does for a flexible height gallery? Is there a way to have the gallery scroll to the last item in the collection / gallery?

 

Your help is appreciated.

Categories:
I have the same question (0)

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard