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
PallavPallav 

How to implemet paging in Visual force datatable?

Hi All,

I would like to implement a paging sceam in datatable. from the VF developer guid I can see that we can only limit the number of records using the "ROW" attribute of the datatable but how can I display the next page or the previous page of data..

Thanks in anticipation of your humble response.

Thanks and regards
pallav
ales.pales.p

I'm also interested... probably we should build our own paging rerender mechanism .

 

R TyeR Tye
I know this is possible as it was mentioned at the last SF conference where someone had built some custom code to allow paging.  It is not a direct feature of VF/Apex however.  I believe they had stored the ID of the last returned page record based on a query limit and then iterated through proceeding loops of the query starting with the last returned ID each time.   
 
It would be interesting if anyone could post some code regarding this however!
VarunCVarunC
May be this link could help: http://salesforcesource.blogspot.com/2008/09/how-to-support-paging-of-data-in-your.html - http://salesforcesource.blogspot.com/2008/09/how-to-support-paging-of-data-in-your.html

Though I am interested in implementing paging with same styling as that of built in salesforce List View paging, so anybody who can help would be appreciated.

- Varun