You need to sign in to do that
Don't have an account?
t.deepthi05
displaying the records in same page on click of next
Hi All,
I want to display all the records in single page
i.e intial when the Page load five records have to display and when i click on next button it has load next 5 records with the inital 5 records
i.e. a total of 10 records
Can i have any work around for the above requirement.
Using custom controller or javascript
I want to display all the records in single page
i.e intial when the Page load five records have to display and when i click on next button it has load next 5 records with the inital 5 records
i.e. a total of 10 records
Can i have any work around for the above requirement.
Using custom controller or javascript
You can do this with a custom controller and a command button. If you have an idea of the maximum that you will display, you can simply retrieve them all in the constructor and show them to the user. If there are likely to be a lot of records that may cause a problem in the view state, in which case you'd be better to retrieve them as part of a getter when the user clicks the button, especially if you aren't allowing the user to make any changes. Here's an example - thre might be the odd typo but hopefully you get the idea:
Controller:
Page:
can i have the same functionality using javascript