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 / How i can load all the...
Power Apps
Unanswered

How i can load all the gallery items without having to scroll down

(0) ShareShare
ReportReport
Posted on by 1,849 Season of Giving Solutions 2025

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

Categories:
I have the same question (0)
  • Pro_User_365 Profile Picture
    546 on at

    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.

    Note: After receiving the answer, if you think it's helpful, please consider accepting it. 😊 Regards! Ali Shahzad

  • johnjohnPter Profile Picture
    1,849 Season of Giving Solutions 2025 on at

    @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

  • Pro_User_365 Profile Picture
    546 on at

     @johnjohnPter

    1. Before generating the PDF, use a context variable to change the gallery's template size to a smaller height.
    2. Generate the PDF with all items now visible.
    3. After the PDF is created, reset the gallery template size back to its standard height.

      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.

     

  • johnjohnPter Profile Picture
    1,849 Season of Giving Solutions 2025 on at

    @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

  • NilsKirsch Profile Picture
    15 on at

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard