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 / Add loading spinner wh...
Power Apps
Unanswered

Add loading spinner while gallery data items are retrieved

(0) ShareShare
ReportReport
Posted on by 30

I have 2 nested galleries implemented where data is populated from SQL, grouped by the "Category" value of the first gallery.

I need to put loading spinner over the second gallery that says "Please wait", when the person clicks the 1st gallery's item, until the moment the 2nd gallery is populated with data.

Categories:
I have the same question (0)
  • AhmedSalih Profile Picture
    6,680 Moderator on at

    Hello @nsmarathe, add your spinner image over the second gallery. On the Gallery1.OnSelect, Create this Local Variable: UpdateContext({lclVarloadingSpinnerVisible: true})

    Add a timer control and set it to 1000 for duration and Set the Repeat property to true..

    Time Start property: lclVarloadingSpinnerVisible 

    The OnTimerEnd property: 

    If(
     CountRows(SecondGallery.AllItems) > 0,
     UpdateContext({lclVarloadingSpinnerVisible: false})
    )

     

    If my reply helped you, please give a  👍 , & if it solved your issue, please give a 👍 & Accept it as the Solution to help other community members find it more.

    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.

    Visit my Blog: www.powerplatformplace.com

    Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos

     

  • nsmarathe Profile Picture
    30 on at

    I followed below steps but it is not working.

     

    1. Add spinner from: Modern Controls >> Spinner
    2. On the ParentGallery.OnSelect, Create Local Variable: UpdateContext({lclVarloadingSpinnerVisible: true})
    3. Add a Timer control and set it to 1000 for duration and Set the Repeat property to true
    4. OnTimerStart: lclVarloadingSpinnerVisible 
    5. OnTimerEnd:

    If(

      CountRows(ChildGallery.AllItems) > 0,

      UpdateContext({lclVarloadingSpinnerVisible: false})

    )

     

  • AhmedSalih Profile Picture
    6,680 Moderator on at

    @nsmarathe, the visible property of the Spinner Image should be set to: lclVarloadingSpinnerVisible

  • nsmarathe Profile Picture
    30 on at

    No Luck.

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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard