+ Start a Discussion
Shiva RajendranShiva Rajendran 

Standard List controller for account is not working as expected

I used a standard list controller for account object . There are around 500 records in the db. But on the page i found only 20 records . i need to know why only 20 records is shown at the page, Also the code worked when i used custom controller. I shall attach the code i used below
<apex:page standardController="account" recordSetVar="acc" >
        <apex:panelGrid columns="5" id="theGrid">

    <apex:repeat value="{!acc}" var="a">
        {!a.id}    <br/>

Best Answer chosen by Shiva Rajendran
Balayesu ChilakalapudiBalayesu Chilakalapudi
As per below link, By default, a list controller returns 20 records on the page. To control the number of records displayed on each page, use a controller extension to set the pageSize. For information on controller extensions see