You need to sign in to do that
Don't have an account?
Shruthi GM 4
How to add pagination to a page where all accounts are displayed along with the checkboxes.
What is the code for that?
Please help.
Thanks inadvance.
Please help.
Thanks inadvance.
From a list of sObjects From a query locator http://amitsalesforce.blogspot.in/2015/04/pagination-using-standardsetcontroller.html
Or please check below post how to perform pagination on Wrapper class
http://amitsalesforce.blogspot.in/2014/11/pagination-with-wrapper-class-with.html
Step 1:- Create Wrapper Class :- Step 2:- Create A Custom Iterator class which should implement Iterator class Step 3:- Create controller class :- Step 4:- Create Visual Force Page :-
Please check Working on below link :-
http://amitblog-developer-edition.ap1.force.com/apex/CustomPaginationDemo
Let us know if this will help you
Thanks
Amit Chaudhary
All Answers
http://blog.jeffdouglas.com/2009/07/14/visualforce-page-with-pagination/
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_sosc_pagination.htm
Thanks,
Nirmala
From a list of sObjects From a query locator http://amitsalesforce.blogspot.in/2015/04/pagination-using-standardsetcontroller.html
Or please check below post how to perform pagination on Wrapper class
http://amitsalesforce.blogspot.in/2014/11/pagination-with-wrapper-class-with.html
Step 1:- Create Wrapper Class :- Step 2:- Create A Custom Iterator class which should implement Iterator class Step 3:- Create controller class :- Step 4:- Create Visual Force Page :-
Please check Working on below link :-
http://amitblog-developer-edition.ap1.force.com/apex/CustomPaginationDemo
Let us know if this will help you
Thanks
Amit Chaudhary
I have used the same code as yours but next and previous buttons are not being displayed.
Please help.
Only change I have done is I have replaced <apex:outputPanel > with <apex:pageblockbuttons>
just to check whether it works or not.But still not working.
<apex:outputPanel >
<apex:commandButton value="<<Previous" action="{!previous}" rendered="{!hasPrevious}"reRender="ThePage" />
<apex:commandButton value="Next >>" action="{!next}" rendered="{!hasNext}"reRender="ThePage" />
</apex:outputPanel>
It is working.Awesome..:)..Thank you..
this is great . Can you help me how first() and last() will work.