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 / Expanding Gallery - Ho...
Power Apps
Answered

Expanding Gallery - How to only have one expand and not all?

(0) ShareShare
ReportReport
Posted on by 30

I am setting up an expanding gallery as a navigation for my page.

There is one gallery (gal_CFTNav) which groups the items by a common category. (Groupby('CFT List', "CFTGroup", "DATA").

There is a button that indicates the name of CFTGroup

 

There is a nested gallery (gal_CFTData) which lists the DATA

 

I have set the OnSelect for the button to UpdateContext({NavVisible:true})

 

This expands all of gal_CFTData but I would prefer to only expand the navigation based on the CFTGroup button that was pressed.

What am I missing?

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Purrple 

    You are missing that you are setting a variable to true or false.  That variable is not record specific, it is just a variable.  So all of your rows will respond to it.

    Instead make your variable record specific.

    Ex.  UpdateContext({NavVisible: ThisItem.CFTGroup})

    Then have your visible or other property based on that.

    Ex on a Visible property:  ThisItem.CFTGroup = NavVisible

     

    I hope this is helpful for you.

  • Purrple Profile Picture
    30 on at

    This did not work exactly like this for me - ThisItem.CFTGroup could not be assessed, but using this logic I updated it to ThisItem.IsSelected and got the desired result.

    Thank you once again for your help!

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Purrple 

    Yep, that will work too.  It will not be as accurate, but it would work fine.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard