Notifications
Announcements
I have a vertical gallery that will contain at max 10-12 items. and i am using the PDF function to generate a pdf of the whole gallery. for the pdf to print the whole items users will have to scroll down to load all items. so is there a way to force the gallery to load all the items without having to scroll down?
Thanks
Hi @johnjohnPter ,
To make sure your gallery loads all 10-12 items at once without scrolling, set the gallery's Items property to your data source, and ensure your gallery's template size and the gallery's height are adjusted so that all items can be displayed at once on the screen. If the items still do not load, check if there is any lazy loading or delegation warning in your app that might prevent all items from loading immediately. There is no need for a special function to force the gallery to load all items if the number is as small as 10-12.
@Pro_User_365 thanks for your reply, but my galley items contain images that consume 1/4 the screen, so it will not be possible to show all the images without scrolling.so that why i want the gallery to full load all its items to be able to print them. Thanks
@johnjohnPter,
Example:
// To shrink the gallery item size before PDF generation UpdateContext({varItemHeight: SmallHeight}); // Generate your PDF here // Then reset the gallery item size after PDF generation UpdateContext({varItemHeight: OriginalHeight});
Apply this varItemHeight to the TemplateSize property of the gallery. This method ensures all items are loaded and visible for the PDF, without the user having to scroll.
@Pro_User_365 do you think this will work from an end user perspective ? the user need to see the items in their actual size inside the gallery.. so you are not answering my main question
Did someone find a solution for that? I am experiencing the same problem now. Only if you scroll down the gallery an all objects are loaded the pdf function will display all the images. 😣
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268