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?



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

  • 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
  • hmmm upto 10k it should be fine and more means this cannot be used and hence we go for standard controller – Mohith Shrivastava Feb 25 '13 at 9:27
  • 1
    Yes you are right. – Vijay Prakash Feb 25 '13 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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