I know we cannot display more than 50000 records(or probably even much higher) in a Visualforce Page
without avoiding viewstate. From an external webservice
I am getting more than 50000 records and my senior manager tells me to display these records on the page.
My answer to this is its not possible but he wont listen.
Best Answer
You can either use client-side or server-side pagination. Either way, you won't be able to use standard tools like StandardSetController or OFFSET.
Server-side, you need to use the @ReadOnly annotation to enable the 1,000,000 row limit, which might look like this:
From there, you just repeatedly call the value until you get all of your results:
Client-side, it'd look more like this example from the docs: