function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sapthagiri ReddySapthagiri Reddy 

pageblocktable sorting

How can we implement sorting functionality for a PageBlockTable written in a VF page.
ShaTShaT
Hi,

Please refer below links.
http://hisrinu.wordpress.com/2012/01/09/pagination-using-standardsetcontroller/
http://blog.cloudclickware.com/tag/standardsetcontroller/

Thanks
SFDC
Avidev9Avidev9
here are few approaches that you can take in
  • Standard Set Controller (http://wiki.developerforce.com/page/Paginating_Data_for_Force.com_Applications) : They can be used to paginate large amount of data around 10K I guess.
  • Offset (http://www.salesforce.com/us/developer/docs/soql_sosl/Content/sforce_api_calls_soql_select_offset.htm)  : SOQL Offset is one of the easiest way to implement server side pagination
  • Javascript : This is preffered if you don't have much data and just want to paginate them so that its managable for user, you can find a lot of plugin that can do this. I have myself created few have a look here http://blogforce9.blogspot.in/2013/11/pageblocktableenhanceradv-yet-another.html