web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Limit numbers of item ...
Power Apps
Answered

Limit numbers of item in gallery and show more as requested

(0) ShareShare
ReportReport
Posted on by 7

Hi everyone!

 

I have a vertical gallery using collection with few hundred items. Now the user is asking to show only 10 items on visible (which I think can use FirstN() to achieve), but user also ask to have a button used to show 10 more items onto the current gallery every time selected

 

Is there a way to achieve this requirement?

 

Thank everyone in advance for your support!!

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,411 Super User 2025 Season 2 on at

    Hi @ldanh 

    Add this to the OnVisible property of your screen.

    Set(varShowNumber, 10)

    Next, set the Items property of your gallery to this:

    FirstN(YourCollection, varShowNumber)

    Finally, on the button that increments the visible count by 10, add this to the OnSelect property:

    Set(varShowNumber, varShowNumber + 10)
  • ldanh Profile Picture
    7 on at

    Hi @timl,

     

    That worked like a charm! thank you for your support!

  • ldanh Profile Picture
    7 on at

    Hi @timl,

     

    Excuse me for asking you again. Now I need to make the button only visible when the scroll reach the end of the gallery. Without reaching the end of the gallery the button will not be visible. 

    I'm not sure if there's a way to set a variable triggered at the end of the gallery.

     

    Thank you so much for your help!!

  • timl Profile Picture
    36,411 Super User 2025 Season 2 on at

    Hi @ldanh - there is unfortunately no way to trigger the visibility of a control when a user reaches the end of a gallery.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard