Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to display a list of documents stored in Salesforce CRM Content on a VF page using JQGrid. I used OFFSET for paging. Since the number of records is more than 2000, I wanted to use StandardSetController like I did for some other custom objects.

The list was not getting populated when I modified the code. When I looked onto the debug log, everything was fine.

Then I tried hitting the AJAX request generated by JQGrid using browser, a page showing "List controllers are not supported for ContentVersion" appeared. That means I cannot use StandardSetController with this object.

Is there any workaround to support paging for more than 2000 records with ContentVersion?

share|improve this question
up vote 1 down vote accepted

Refer the above blog.Earlier days we had no pagination support in salesforce.Still people used custom logics and did the pagination.In our case here too we can apply the logic in above blog to make our pagination

share|improve this answer
Thanks, I'll try this and let you. – Vijay Prakash Feb 22 '13 at 6:34
It worked. Thanks. – Vijay Prakash Feb 25 '13 at 6:50
welcome !Happy to know it did the magic. – Mohith Shrivastava Feb 25 '13 at 8:16
Only thing is that if the total number of records increases, like exponentially, there will be a huge performance hit. For me, the total record count is around 2500 and it does not increase rapidly. – Vijay Prakash Feb 25 '13 at 9:25
Yes you are right. – Vijay Prakash Feb 25 '13 at 9:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.