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 / Show a gallery after i...
Power Apps
Unanswered

Show a gallery after it is loaded

(0) ShareShare
ReportReport
Posted on by 565

Hi,

 

Is there any way to know when a gallery is loaded ?

I want to display the gallery only when the filter applied is fully completed.

While the records are fetching, I want to hide it.

 

Thanks for any help!

Categories:
I have the same question (0)
  • AndrewR1 Profile Picture
    1,572 Moderator on at

    Hi @EmilioRoqueta69 if the gallery all items is blank on load and takes a minuet to load the data you can try this on the second gallery that you wish to hides Visible property: 

     

    If(Gallery1.AllItemsCount>0,true,false)

     

    This will count the all items in gallery1 and if it more than 0 it will set this to true if it 0 it will be false. 

     

    It would also depend how you are getting your data if your using a collection I would above the Collect() function set a variable 

    Set(loading,true)

    and at the end of the collection I would update this to false: 

    Set(loading,false)

    The in your on visible property have 

    If(loading,false,true)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. Remember, you can accept more than one post as a solution.

     

    If the content was useful in other ways, please consider giving it Thumbs Up.

     

    Thanks
    Andrew

     

  • SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at

    Hi @EmilioRoqueta69 

     

    Sadly the Gallery currently do not offer a way to check whether or not a gallery has finished loading.

    But there are some other ways.

     

    I found a old post but interresting for you to use:

    In order to:

     

    - Disable a Button or any Gif image until ALL THE DATA have been already loaded comptely, I may suggest:

     

    Gallery.Visible

     

     

    If(
     CountRows(Gallery1.AllItems) = CountRows(TableX), 
     true, 
     false
    )

     

     

     

    Where TableX is the original DataSource and

    Gallery1.Items = TaleX.

     

    Please try if this work for you.


    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • CU25111313-0 Profile Picture
    2 on at
    @SpongYe,
    Thanks for the idea ,
    so I little workaround with this solution, the Visible property of Gallery is set to because microsoft only loads 100 record in gallery at first
    CountRows(Gallery1.AllItems) = 100
    and Loader's Visible property is set to !Gallery.visible

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