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
mahesh reddy 4mahesh reddy 4 

Hi, i want to display 1oooo records in vf page how can i achieve this?

Dev.AshishDev.Ashish
Mahesh,
You need to paginate records for display. You need to user standardsetcontroller, you have couple of options. Refer https://developer.salesforce.com/page/Paginating_Data_for_Force.com_Applications
AshlekhAshlekh
Hi,

Salesforce has limit that pageblocktable can only show 1000 records, But if you want to show more than records then you have to make your page readonly by this you can show more recrods.

<apex:page controller="SummaryStatsController" readOnly="true">

Normally, queries for a single Visualforce page request may not retrieve more than 50,000 rows. In read-only mode, this limit is relaxed to allow querying up to 1 million rows.

In addition to querying many more rows, the readOnly attribute also increases the maximum number of items in a collection that can be iterated over using components such as <apex:dataTable>, <apex:dataList>, and <apex:repeat>. This limit increased from 1,000 items to 10,000. Here is a simple controller and page demonstrating this:

IF it helps you than please mark it as a solution and ENJOY APEX.
Avidev9Avidev9
If you want to display a huge number of records you can consider remoting + client side templating. This will raise the bar to as much as 15mb of raw data!  I did a small blog on the same and you can find the same here http://blogforce9.blogspot.in/2014/06/using-salesforce-remoteobjects-with.html

The above example is done using remoteObjects you can switch it to remoting.