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 / Loading Spinners appea...
Power Apps
Unanswered

Loading Spinners appears when it filters the gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

My gallery has a lot of data and the filtering time sometimes takes moments. I want to create a simple gif with information about loading data but I am facing a problem with setting the right parameters

 

 

OgOrowy_0-1666453242427.png

The loading icon appears only for moments 

 

Gallery7_1 = > Items => glbData

Image1_1 => Visible  => glbSpinner

 

 

I am trying to make it so that the icon only appears when the gallery is filtered

OgOrowy_1-1666453402934.png

 

 

 

 

Categories:
  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @Anonymous ,

    This is always a conundrum as there is no trigger when a gallery is loaded visibly. I am assuming here that the Items of your gallery is glbData (I am wondering however why you simply do not make it the Filter inside this). As this is a Delegable filter, and assuming from your gallery will load at least 100 items (this is the size of the "batch" loaded until the users scrolls down for the next 100). So you can still use the same code, but leave off the last false setting (you will need to do this when you exit the screen)

    Set(glbSpinner, true);
    Set(
     glbData, 
     Filter(
     ZatwierdzonePaczki,
     Value(Data_liczba)>= varDataFromla && Value(Data_liczba)<= varDataTo2a, 
     StartsWith(
     Nazwisko, 
     Textlnput7_6.Text
     ), 
     StartsWith(
     'Numer umowy',Textlnput7_8.Text) 
     )
     )
    );

    and set the Visible of the spinner to

    gblSpinner && CountRows(GalleryName.AllItems) < 100

    Please note this is a workaround and is the best I can think of.

     

    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. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I don't know if I understood you correctly my scenario predicts

    1. pushes in Textlnput7_6 the word "Now"
    2. appears in the middle of Spinners
    3. the gallery filters out all the data
    4. the Spinners disappears

  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    @Anonymous ,

    What exactly are you saying in you last response. All I suggested was keeping the spinner visible until 100 records have been loaded in the gallery - nothing else has been changed in your code.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I tried to put this set in the gallery but an error pops up

     

    OgOrowy_1-1667410800335.png

     

  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    @Anonymous ,

    You cannot put an action in a Filter - in what I posted, it was before the Variable was set. As I said originally, you need to set the Variable at the trigger the gallery starting to load - maybe Screen OnVisible

     

    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. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you very much for your help. I now understand your premise. Unfortunately, it will not work for me. Unfortunately there are cases when the gallery will load above 100 (rare but can happen)
    Understands that at this point there is no simple preview of the gallery loading. The only option is to set a timer for about 10-15s or translate the walking ants at the top of the screen 😉

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard