-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
5Questions
-
1Replies
-
- N Hemanth kumar
- July 23, 2018
- Like
- 0
- Continue reading or reply
-
- N Hemanth kumar
- June 28, 2018
- Like
- 0
- Continue reading or reply
Getting around 1000 record collection size limit in pageBlockTable
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...
- 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.
- 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"> {!item.text} </apex:repeat> <apex:repeat value="{!myCollection}" var="item" rows="1000" first="1000"> {!item.text} </apex:repeat> <apex:repeat value="{!myCollection}" var="item" rows="1000" first="2000"> {!item.text} </apex:repeat>
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.
- hemm
- September 13, 2010
- Like
- 0
- Continue reading or reply