cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pmcgurn01
Advocate II
Advocate II

Gallery scrolling performance issues

I'm hoping there's some kind of planned performance improvement work on the gallery control, but posting this, in case there isn't.

 

At present, the gallery control is incredibly clunky/laggy when scrolling any faster than what I'd consider to be "unreasonablly slow".  The behavior is 

  1. I scroll
  2. The rows move up
  3. There is a huge empty whitespace for about 1-2 seconds
  4. The white space fills up as the elements render
  5. Repeat process

 

I will note:

  • It doesn't matter if I bind the gallery to a local collection or directly to the data source.   Since my data source (Azure SQL) is too large to be cached to a collection, I'm limited to direct binding anyways.
  • It's reproducible in web player (Chrome browser) and mobile (iPad app)
  • I am using ThisItem to bind all data to controls in the gallery.  At this point, I have 8 controls total in the template row, which are a mix of images (2 icons) and labels (6 of those).
  • It seems to be completely unrelated to latency in the network.  I can verify this by watching the troubleshooting console, and the lag isn't tied to any network calls, though I do see those happen at each 100 rows of data or so.
  • I can reproduce this on other data sources that I am caching to a local collection on app OnStart, where I see this empty whitespace when I scroll fast enough to where the gallery would need to render more than ~5 rows at a time.  In that case, the datasource is cached to a local collection, and that gallery only has 5 labels in the template row.

 

I'm attaching a video of this behavior.  While the lag you see might be "acceptable", it's not a great user experience on any platform. I understand that the gallery is probably working as designed for keeping resource utilization low on mobile devices, however, since this can be reproduce on mobile, too, I'm asking that Microsoft improve this. 

85 REPLIES 85
zaina
Frequent Visitor

whenever i scroll down it goes up on the top. is there any permanent fix for this ?

zaina
Frequent Visitor

Yes we are also facing this issue. and problem is that if we go back to old version it is only temporarily when we open power apps studio it goes back to new version with scrolling issue. and we can not send new deployment to clients due this scrolling issue. 

 

Other things with same new versions my half team is facing this issue and half team is not facing issue, all of us are on same new version. and we have not heard anything from our clients means they are good i think but i have a fear if we send ne deployment to clients they will start facing this issue.

 

so any permanent solution for this please? will be very appreciated.

oldman
Frequent Visitor

It is possible to increase the amount of records that stay loaded in a gallery. This decreases loading times a little but helps when scrolling up and down as nothing visual is being updated by the renderer.

 

  1. Create a (vertical) container with fixed height of the size you want your gallery to be on the screen.
  2. Insert a Gallery into the container and choose a ridiculous large height. All the records/elements within this height are being generated and can be displayed almost instantly without much loading.

My approach is to paginate the gallery and display a limited amount of items per page ( e.g. FirstN( source, 100)). This allows the user to scroll through a set amount of items with a fast responding gallery.

oldman_0-1668587375799.png

 

Great Idea, i had the same problem with a Gallery. Copied a Canvas and datacard from a Scrollable Screen to my original screen and insert de gallery onto the datacard. No more load on scroll problem.  Thanks for your idea

Hi, 

If you have the time, could you describe this a little more please? 

The part I don't understand is the copying of a Canvas. Not sure what a Canvas is exactly - note I haven't used older versions of powerapps so perhaps something has changed. Also datacards only seem to be available inside forms as a control. 

 

I have 800 rows to scroll through with at least 20 columns of which about half will have editable controls. The scrolling is lagging very early on in the build with far less controls than that and with all the filtering and onchange events removed. I am running out of things to test and am not sure if I'll ever make an app that users will accept the scroll speed of. I scroll down with any kind of speed and the loading wheel appears for a good 4 seconds. 

 

Thanks

cwebb365
Most Valuable Professional
Most Valuable Professional

There isn't really a good option right now to handle that amount of data and scrolling that's built into the product. Your best bet is custom PCF grid control (which I never got around to doing a video of, sorry all lifes been hectic...) or using model driven apps which requires premium license and you may not fully like the grid UI options there as it uses paging at 50 or 100 records but the UI is nice and very filterable for working with large data sets and you can use editable grids as well with sub grid controls. 

The pcf method is very performant but mine is read only, haven't looked into inline editing ones which are possible but would require much more custom coding. 

The Canvas and Datacard are objects that appear when yoy create Scrollable Screen.  You could copy these objects to any other other screen.  The Canvas control the visible portion of the object, and the datacard could be longer, and is scrollable. The you could insert a Gallery into the DataCard Section.  If the gallery it's too large, it will take longer to upload data, but in that way you could avoid the constant refreshing of the gallery.  It's maybe not the best way to work with gallerys, but it works.

 

Hope that helps

 

Oh thanks, I'd never heard of a scrollable screen before, so that's helped immensely. It immediately solved the scrolling issues which is fantastic. But in a classic 'good news bad news' way it's slowed all interactions with the controls within the gallery and the loading time of the data is now about 5 minutes (for only 800 rows!) so I'm going to try trim fat in other areas, maybe some of the containers I was using to achieve horizontal/vertical scrolling before can go. Thanks again. 

 

Ps. I'm loading a month of data at a time (~800) rows per month. I wouldn't mind so much if just loading the month took a while, but I'm also saving modified rows to a collection, patching that to a dataverse table when the user clicks a save button and then bringing them back into the gallery collection - which refreshes the gallery and takes the ~5 mins all over again. I might skip bringing them back in and just patch the changes directly to the collection when I patch them to the dataverse table. It was serving as a nice check that the changes made it in full though. 

Thanks @cwebb365. I had looked at model driven but couldn't work out how to do what I'm doing in canvas, namely:

 

1. dataflow from SQL server on prem into a dataverse table

2. Query another SQL view in the powerapp directly - with user selected date filter variables.  (collection1)

3. Query the dataverse table from step 1 with the same date range. (collection2)

4. Use addcolumns to left join collection1 onto collection2. (collection3)

5. Use collection3 as the Item source for the gallery, filter options and sorting on every column, data entry on half of them. ~800 rows of basically an excel document type arrangement for users to classify individually and batch classify rows (I have a neat batch panel that pops out in a container on the left). 

 

I will google editable pcf. Unfortunately I'm building in a bit of a rush so starting fresh is tricky. 

 

Thanks for your advice!

cwebb365
Most Valuable Professional
Most Valuable Professional

Pull the whole Filter of the Dataverse data into a collection and use that collection in your gallery. Then patch the collection with edits, then save button patches collection to dataverse table, it'll handle the row updates itself and should be more efficient, assuming the datasource can be pulled to a collection and isn't to complex. 

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!      

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

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