Skip to main content
edited tags
Link
Adrian Larson
  • 151.4k
  • 38
  • 247
  • 431
edited tags
Link
javanoob
  • 9k
  • 15
  • 77
  • 143
Source Link

VF page showing salesforce pagination using datatables

I'm trying to create a salesforce list view pagination using datatables, in my visualforce page. In my case, I have lets say 10K records and like on salesforce I want to show not more that 2000+ records at a time.

Clicking Next button at datatables pagination I go to the last page where I'm shown 1900-2000 of 2000 records. When I click next again I want to go to query the next 2000 records from 2000 - 4000.

I'm using javascript remote action and loading all 2000 records in the page.

Does anybody have an example of this situation? How have you handled the code to understand the last next of 2000 records?