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
I will note:
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.
I used https://docs.microsoft.com/en-us/powerapps/developer/component-framework/tutorial-create-canvas-data... and them modified a bunch from there. It’s basic out of the box but still works.
I am also struggling with this scrolling and waiting for data/row to load in.
I tried the idea of having the gallery fixed height (no reference) and like OP it didnt help with the delay in rows loading when scrolling.
But, but, it had me thinking about using the scrollable screen, literally just test it now, and for some reason my gallery can now scroll without the delay.
How went about it: create new scrollable screen > paste my gallery from the other screen into datacard > change height property of gallery to = CountRows(GalleryName.AllItems) * GalleryName.TemplateHeight > on the gallery I turn off scroll bar and nagivation.
It seems the scrollbar on the scrollable screen is more reliable. Its not great solution but at lease it works. Ofcause if you have headings like me you will need to place these in the title container of the scrollable screen. Doable workaround for now till MS get their gallery fix?
Edit: Spelling and missing code bits, also you can steal the "Canvas" Container with its data card from the scollable screen and paste it to your screen and resize it then put your oringal gallery inside 🙂
I need controls within it to allow users to edit items/ write comments to the items. So ill stick with my "workaround" with the scrollable screen canvas container.
Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.
Your chance to join an engaging competition of Power Platform enthusiasts.
The Super User program for 2022 - Season 2 has kicked off!
Attend in person or online, there are incredible conferences and events happening all throughout the month of September.