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

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 (" target="_blank)

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

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:enhancedList type="Case" height="300" rowsPerPage="10"  />
Hi Raju, some more examples of pagination at the below links