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
PrazPraz 

Pagination in visualforce

Salesforce implements a standard pagination framework for out of box functionality..for instance one can go to product object and onece clicked on the All Products you will see the pagination.. for example I am embedding this image for reference

 

pagination

 

Can anybody tell me how this pagination style can be implemented in visualforce page.

symantecAPsymantecAP

Hi You may use your code sumthing like dis or 

check out pagination on http://www.salesforce.com/us/developer/docs/pages/index.htm

<apex:commandButton value="First" action="{!firstBtnClick}" disabled="{!previousButtonEnabled}" status="status2" reRender="pageBlock"></apex:commandButton>
<apex:commandButton value="Previous" action="{!previousBtnClick}" disabled="{!previousButtonEnabled}" status="status2" reRender="pageBlock"></apex:commandButton>
<apex:commandButton value="Next" action="{!nextBtnClick}" reRender="pageBlock" disabled="{!nextButtonDisabled}" status="status2"></apex:commandButton>
<apex:commandButton value="Last" action="{!lastBtnClick}" reRender="pageBlock" disabled="{!nextButtonDisabled}" status="status2"></apex:commandButton>