You need to sign in to do that
Don't have an account?
m_roark
Is there a way to control sort order for an 'apex: datatable'?
The subject basically says it all. Is there a way to do this? I need to display the elements in my table in a specific sort order.
http://blog.sforce.com/sforce/2008/09/sorting-collect.html
I need a way to do this natively, without calling APEX classes. The page I need to use this on is in a VisualForce email template, and I cannot call custom extensions. Is there an attribute or element I can include in my datatable construction which will automatically sort by a specific element of data the list of related data elements in the 'value' attribute and display them in this sorted order?
My use case is an autogenerated Invoice, where I need to display the list of specific products sorted by product name.
I will take a further look into this, and see if this will help. Thanks for the suggestion.
You could get even fancier with the component and add addtional attributes such as sortDirection, fieldToSort, etc.
Hope that helps.
-Jason
Message Edited by TehNrd on 12-05-2008 09:49 AM