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
Pankaj NPankaj N 

How I can show 5000 Record On the Vf page without using pagination and attribute readonly?

How I can show 5000 Record On the Vf page without using pagination and attribute readonly?
Prady01Prady01
Hi there, You can use either <apex:repeat> or <apex:pageBlockTable> and iterate through list from apex class. Below is the sample code.
 
<apex:page controller="FetchAccount">
<apex:form>
<apex:pageBlock>
<apex:repeat value="{!accLst}" var="acc">
<apex:outputText value="{!acc.name}"/>
</apex:repeat>
</apex:pageBlock>
</apex:form>
</apex:page>
 
public with sharing FetchAccount{
public list<Account> accLst{get;set;}

public FetchAccount(){
accLst = New List<Account>();
accLst = [select id, name from Account LIMIT 10];
}
}

Hope this helps!
Prady01