Goto next page numbers when next button is clicked
Goto next page numbers when next button is clicked

Sir,
There are more than 100k data in datatables and pagelength is set to 10. So, a lot of pages are created that can be easily accessed. Is there any configuration or any tweaks so that when I click on next, the complete next pages would appear. For e.g.
In current implementation, on clicking next button the page shift to only one i.e. first 1 2 3 ... 4 next is shifted to first 2,3,4,...,5 next
But I need the implementation: first 1,2,3,...,4 next. When clicked to next: first 5,6,7,...,8 next.
How can I make it possible?