+ Start a Discussion

Standardsetcontroller page size issue


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?