You need to sign in to do that
Don't have an account?
visualforce column header sequencing functionality
General question: Standard Salesforce pages provide the ability to resequence a form's contents when a header is clicked (once for ascending, a second time for descending). when buildin a Visualforce page, what is the code used to provide that resequencing functionality? I would think it would be an addition to the columnHeader value portion of the apex code, but I can not find the specific coding. Something that would fit inside:
<apex:column headerValue="Property Name">
<apex:outputLink value="/{!mp['Id']}" title="{!mp['Name']}" target="_top">{!mp['Name']}
</apex:outputLink>
</apex:column>
Any ideas?
<apex:column headerValue="Property Name">
<apex:outputLink value="/{!mp['Id']}" title="{!mp['Name']}" target="_top">{!mp['Name']}
</apex:outputLink>
</apex:column>
Any ideas?
Most use JQuery to do it.
Here are a few links....
https://www.sundoginteractive.com/blog/a-recipe-for-column-sorting-salesforce-visualforce-page
http://bobbuzzard.blogspot.com/2014/09/sorting-visualforce-tables-with.html
http://www.systempartners.com/blog/visualforce-sortable-table
All Answers
Most use JQuery to do it.
Here are a few links....
https://www.sundoginteractive.com/blog/a-recipe-for-column-sorting-salesforce-visualforce-page
http://bobbuzzard.blogspot.com/2014/09/sorting-visualforce-tables-with.html
http://www.systempartners.com/blog/visualforce-sortable-table