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
sultansultan 

I have a list of 100 records now I want to display 10 records per page?How can we achieve this?

Anoop yadavAnoop yadav
Hi Raju,

Check the below link
http://avinashkaltarisfdc.blogspot.in/2012/01/pagination-using-standardsetcontroller.html (http://avinashkaltarisfdc.blogspot.in/2012/01/pagination-using-standardsetcontroller.html" target="_blank)

Set  "setCon.setpagesize(10)"  in controller
to display 10 records per page.
Abi DuthuAbi Duthu
Hi,

If you are using Enhaced List to display the records in Visual force Page, you can limit the No of records by using th attribute ''rowsPerPage'' in that - like below,

<apex:page>
    <apex:enhancedList type="Case" height="300" rowsPerPage="10"  />
</apex:page>
Ramu_SFDCRamu_SFDC
Hi Raju, some more examples of pagination at the below links

http://blog.jeffdouglas.com/2009/07/14/visualforce-page-with-pagination/

http://www.redpointsolutions.com/add-pagination-to-your-visualforce-pages-using-the-soql-offset-clause