+ Start a Discussion
Dutta SouravDutta Sourav 

Pagination and SetPageSize through <apex:repeat>

How can we implement setpageSize through <apex:repeat>

Data are displaying through Repeat. I want to display 10 at a time
and want to add  "Previous" & "Next" Button in VF Page.

Caan anyone help??

Best Answer chosen by Dutta Sourav
ManojjenaManojjena
Hi Sourav ,

If you are using recordsetvar in page and try to achieve pagination try with below link .

https://hisrinu.wordpress.com/2012/01/09/pagination-using-standardsetcontroller/  

If you are not using recordSetVar attribute in page then check below link .

https://www.sundoginteractive.com/sunblog/posts/server-side-pagination-in-apex-visualforce-for-custom-classes  

Let me know if it helps .

Thanks 
Manoj

All Answers

gbabugbabu
Hi Sourav,

use the custom controler class  and create "previous" and "next" methods . write the logic for it 
ManojjenaManojjena
Hi Sourav ,

If you are using recordsetvar in page and try to achieve pagination try with below link .

https://hisrinu.wordpress.com/2012/01/09/pagination-using-standardsetcontroller/  

If you are not using recordSetVar attribute in page then check below link .

https://www.sundoginteractive.com/sunblog/posts/server-side-pagination-in-apex-visualforce-for-custom-classes  

Let me know if it helps .

Thanks 
Manoj
This was selected as the best answer