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 / Update Items property ...
Power Apps
Suggested Answer

Update Items property of Gallery on Selection of gallery Item to auto-Update Gallery on same Screen

(2) ShareShare
ReportReport
Posted on by 195
Is there any way to update the "Items" property of a Gallery, to kind of perform async on the Gallery without navigating to new screen
 
Items= [Category_Name:"C1", Category_Name:"C2", Category_Name:"C3"]
 
So if I could do something like:
 
Items= If(Gallery.Selected.Category_Name<>"C1",
    [Category_Name:"sub1_C1", Category_Name:"sub2_C1"],
    [Category_Name:"C1", Category_Name:"C2", Category_Name:"C3"]
)
 
But it is not possible... Please suggest work around to get this done. Thanks!
Categories:
I have the same question (0)
  • Suggested answer
    narayan225 Profile Picture
    2,547 Moderator on at
    I am not sure what you are trying to do but you can do this using a collection.
    I have done the following:
    1. OnStart property of the app:
    ClearCollect(colMainGalData,{Category_Name:"C1"}, {Category_Name:"C2"}, {Category_Name:"C3"})
    2. Items property of the galler:
    colMainGalData
    3. OnSelect property of the gallery:
    If(Gallery1.Selected.Category_Name<>"C1",ClearCollect(colMainGalData,{Category_Name:"sub1_C1"}, {Category_Name:"sub2_C1"}),ClearCollect(colMainGalData,{Category_Name:"C1"}, {Category_Name:"C2"},{Category_Name:"C3"}))
    It works like:
    And then:
     
    Hope this helps.
    Cheers!

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

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard