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 / Reset selection in a n...
Power Apps
Unanswered

Reset selection in a nested gallery

(0) ShareShare
ReportReport
Posted on by 22,505 Super User 2025 Season 2

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,505 Super User 2025 Season 2 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

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