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
romschnromschn 

Standardsetcontroller page size issue

Hello,

As I understand, the default page size for standard set controller is 20.By default when my list gets loaded, i want to make it as 10.
Hence,In my controller for VF page, I am setting the page size as 10. My page loads fine showing 10 records on first page. However, when I run the test class, it gives me the error as - Modified rows exist in the record collection. If I remove the line of setting 10 as default page size then it works fine.
Does anyone have any idea on this?

Thanks,