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 / 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,299 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,299 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard