Skip to main content

Notifications

Community site session details

Community site session details

Session Id : rbPSqOXzCk+pR+E+3leclz
Power Apps - Building Power Apps
Unanswered

expand and collapse using the buttons

Like (0) ShareShare
ReportReport
Posted on 28 May 2024 08:41:17 by

Hello
I would need help.

I have created the display as it is in the photo, everything works, I just want to click on that button and the gallery opens, and then when I click a second time, it closes, or I could also open several of those groups at the same time, now it works for me just one at a time.
Can you help me with that, thank you

AndrejPavlik18_0-1716885668347.png

 

Categories:
  • AndrejPavlik18 Profile Picture
    on 29 May 2024 at 07:01:56
    Re: expand and collapse using the buttons

    Hi 

    Thanks for your answear, 

    Yes that buttons is in one gallery and inside that gallery is nested gallery where is concreke and filtered data. 

    your procedure does not fit my task and I don't know how to implement it

  • Adrian_Celis Profile Picture
    1,652 Super User 2025 Season 1 on 28 May 2024 at 17:17:16
    Re: expand and collapse using the buttons

    Hi @AndrejPavlik18 

    Are all of the buttons from "02 Pretreatment 4" up to "10 Quality inspection and management NOKs" inside the same gallery?

    First of all, use a Flexible Vertical Gallery to be collapsible. Then the items property of the gallery should be a collection. Then you should have a column in the collection as a flag when to expand or collapse. When you click a button, you should patch that column to either true or false and let the contents of the row be visible/invisible based on that true/false value. The flexible gallery will collapse/expand automatically.

     

    You may also see this tutorial. It demonstrates a good example of an accordion-type gallery.

    Power Apps – How to create an accordion or a expandable gallery 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 60

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard
Loading started