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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Reset selection in a n...
Power Apps
Answered

Reset selection in a nested gallery

(0) ShareShare
ReportReport
Posted on by 22,833 Super User 2026 Season 1

Hi All,

 

I have a nested gallery that is made visible when based on the value of the "Expand" column in the data source. As you may guess, I use this to expand/collapse the view to show/hide items in the nested gallery that are related to the item in the main gallery if there are any. 

 

Also I'm using conditional formatting to highlight the selected item.

 

TemplateFill = RGBA(198,239,206,If(ThisItem.IsSelected,1,.7)

 

Ideally between the main and nested gallery, only 1 item should be showing as selected.

 

Based on the Unselected a gallery item? - Power Platform Community (microsoft.com) topic I have set up a solution where onSelect in either galleries resets the other gallery:

 

default = {}
OnSelect = Set(var,ThisItem); Reset(Other Gallery)

 

This seems to be working for the main gallery (1), but not for the nested gallery (2):

BCBuizer_0-1634291493524.png

I tried verifying if an item has been selected at all in the nested gallery, but this does not show a value in any case, selected or not:

 

text = NestedGallery.Selected.Title

 

Your thoughts on how to make this work are most welcome.

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Hi All,

     

    Found the issue: The templatefill of both the main and the sub gallery were overlapping. As a result, the combined alpha value exceeded 1, hence it looked as if an item was selected, but it wasn't. 

     

    I worked around the issue by inserting a rectangle in the main gallery with the same conditional formatting.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard