function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sam.arjSam.arj 

How to view large data in pages of 10~15 records using PageBlockTable

In one of the projects I am involved I need to show results with 600 or 700 rows (records) to the user. I thought to myself that this must be very hard for the user to browse all those in a long page (one list).

Then I remembered the nice Paging feature of .NET's Gridview and started investigating to see if PageBlockTable supports something similar. Unfortunately it does not!

So I decide to implement it myself and I have posted it on:
http://salesforcesource.blogspot.com

Check it out, now i was wondering if anyone else has done something on this and if there is a better way of doing so.




Message Edited by Sam.arj on 09-22-2008 07:42 AM
dchasmandchasman
You'll definitely want to take a look at the new pagination functionality we added to Winter '09 available now on test.salesforce.com. Jon Mountjoy just blogged about this too http://blog.sforce.com/sforce/2008/09/visualforce-pag.html
developer-forcedeveloper-force
Hi,

The pagination feature is very good with List of SObjects instances. What if my list is a collection Apex Class instances modeled to aggregate the view from more than 2 SObjects related to each other. I think this case we need to create our own VF component to fetch related data according to page size and populate the list of Apex class instance required by the VF view. Is there any easy way to do that?