cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Elements are visible while their visible property is evaluated

I have a BrowseGallery with some indicators (buttons, images or icons) whose Visible property depends on a lookup value.

My problem is that all of them show while the gallery is loading, and then disappear based on the visible formula evaluation.

Is there a way to hide them until the gallery is loaded?

1 ACCEPTED SOLUTION

Accepted Solutions
MrNappa
Kudo Commander
Kudo Commander

I'm not sure if it's exactly what you need, but maybe you could use a construction like this.

 

Set the Visible property of the elements you want hidden initally to 'showControls && (your additional visibility logic)'

 

Then, in the OnVisible of your page, use:

UpdateContext({ showControls: false });
ClearCollect( galleryItems, /*(load logic for your gallery items)*/ );
UpdateContext({ showControls: true });

 And use the 'galleryItems' collection as source for your gallery.

View solution in original post

3 REPLIES 3
MrNappa
Kudo Commander
Kudo Commander

I'm not sure if it's exactly what you need, but maybe you could use a construction like this.

 

Set the Visible property of the elements you want hidden initally to 'showControls && (your additional visibility logic)'

 

Then, in the OnVisible of your page, use:

UpdateContext({ showControls: false });
ClearCollect( galleryItems, /*(load logic for your gallery items)*/ );
UpdateContext({ showControls: true });

 And use the 'galleryItems' collection as source for your gallery.

Anonymous
Not applicable

@MrNappathanks for the prompt response. This should do the trick, and I'll add a loading spinner. Will let you know after the Easter Break.

Anonymous
Not applicable

@MrNappa I implemented it and it works to some extent: the images still pop up for a short moment when the gallery initially loads, and then disappear all at once before the desired ones come back individually, which is slightly better than before. Thanks again!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,752)