+ Start a Discussion
Nagendra SinghNagendra Singh 

How to use Pagination

i have reocrds in a object,and showing these records on page using pageblocktable,how to use Pagination for that object
logontokartiklogontokartik
Hi Nagendra,
The Apex StandardSetController has methods that will get/set pagenumbers, pagesize,next, prev etc. You can use them to do the pagination. 
https://www.salesforce.com/us/developer/docs/pages/Content/apex_ApexPages_StandardSetController_methods.htm
Alternatively, you can use custom JS functions to do the paginations, there is a very good blog post and example in this blog
http://blogforce9.blogspot.com/2013/06/pageblocktable-enhancer-v22-much-needed.html

Thank you