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
t.deepthi05t.deepthi05 

standard set controller

Hi All,

I am using standard set controller and displaying records using pagination

when i clicking on next,or pervious it is displaying the same records in all the pages.

can i know why its is happening.
Ramu_SFDCRamu_SFDC
I suspect that the Next and Previous buttons are not set based on whether the records exist or not and they are always refreshing the same set of records on button click. Follow the steps explained in the below blog post

http://forceguru.blogspot.in/2011/04/pagination-in-salesforce.html

Hope this helps. 

In case the above post did not help, please post your controller code and VF page code code so that we can try identifying the issue.
Ramakrishnan AyyanarRamakrishnan Ayyanar
Hi t.deepthi05,

I think ,you will set the setPageSize.