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?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
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
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0