Activity › Forums › Salesforce® Discussions › How can we implement pagination in Visualforce page in salesforce? Tagged: Pagination, Salesforce Page, Visualforce Page Salesforce® Discussions How can we implement pagination in Visualforce page in salesforce? Posted by Prachi on September 9, 2019 at 4:01 AM How can we implement pagination in Visualforce page in salesforce? This discussion was modified 6 years, 8 months ago by Prachi. Piyush replied 6 years, 8 months ago 2 Members · 1 Reply PaginationSalesforce PageVisualforce Page 1 Reply Piyush Member September 9, 2019 at 5:10 AM Hi Prachi, You can check this code to implement pagination in Visualforce page in salesforce:- <apex:page standardController="Opportunity" extensions="oppoNe" recordSetVar="opportunities"> <apex:pageBlock title="Viewing Opportunities"> <apex:form id="theForm"> <apex:pageBlockSection > <apex:dataList var="opp" value="{!opportunities}"> {!opp.Name} </apex:dataList> </apex:pageBlockSection> <apex:panelGrid columns="4"> <apex:commandLink action="{!first}">FIRST</apex:commandLink> <apex:commandLink action="{!next}">NEXT</apex:commandLink> <apex:commandLink action="{!previous}">PREVIOUS</apex:commandLink> <apex:commandLink action="{!last}">LAST</apex:commandLink> </apex:panelGrid> </apex:form> </apex:pageBlock> </apex:page> public class oppoNe { public oppoNe(ApexPages.StandardSetController controller) { controller.setPageSize(10); } } Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me