• Mustika Murni
  • 0 Points
  • Member since 2017

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 1

On a VF page, I have a pageBlockTable.  There are times where there are more than 1000 records in the collection to be rendered.  When this occurs, the Visualforce collection limit of 1000 is hit and the page doesn't load.  I need to figure out a creative solution for getting around this.  In the end...


  1. I need all records to render on the page. If I do any pagination, it'll happen client-side after the records are loaded in the HTML.  I know the first responses to this will be about whether I really need to have all those records on the page and how there is doubt about whether I need to, but for the purposes of this forum post, please work with me here.
  2. I want to keep the look and feel of a pageBlockTable if possible.


When not using pageBlockTables, I have used a construct similar to the following to get through a collection of more than 1000 items.


<apex:repeat value="{!myCollection}" var="item" rows="1000" first="0">
<apex:repeat value="{!myCollection}" var="item" rows="1000" first="1000">
<apex:repeat value="{!myCollection}" var="item" rows="1000" first="2000">


pageBlockTable has the rows and first parameters, but if I do that, I'd be getting a new pageBlockTable everytime.


The options I can think of are:


  • Get a creative solution from the forums to actually utilize the pageBlockTable (purpose of this post)
  • Use apex:dataTable and try to use style classes to mimix the pageBlockTable look and feel. This is a nice possibility I haven't tried yet.
  • Use apex:repeat tags and make up my own HTML styling


Any help is appreciated.



  • September 13, 2010
  • Like
  • 0