Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 down vote accepted

http://salesforcesource.blogspot.in/2008/09/how-to-support-paging-of-data-in-your.html

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
1  
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
1  
Yes you are right. –  Vijay Prakash Feb 25 '13 at 9:29

Your Answer

 
discard

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.