+ Start a Discussion
Lukesh KarmoreLukesh Karmore 

i have to display no of records in custom controller in vf

i want to display how many recrds retrive on this page like 10 or 20  as count at the bottom of vf page in custom controller
any one give me example 
Thank You
PriyaPriya (Salesforce Developers) 

Hi Lukesh,

Do you only want to display the count of record or along with records?
If second is the case then, use the concept of pagination. 
Here is the sample code for it :- 
https://developer.salesforce.com/forums/?id=906F0000000BZxWIAW

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_sosc_pagination.htm

If the above information helps you, please mark it as best answer.

Regards,

Priya Ranjan