function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mahesh NirmalMahesh Nirmal 

visualforce page bug

I have a visualforce page which has a pagination with Next and Previous buttons.

This button are only visible if records are more than 50. But the problem is that when I click on next button for 51th record it takes me to the top of the page. And then if I press next button again then it takes me to next page to see the records from 51 to 100.

So the bug is that very first click on next button takes me to the top of the vf page and after trying second time it takes me to next page.

The problem occurs only if the page length increases else it work fine.