I have a collection presented in a table and I would like to have an option to select different sortings (e.g. a Customer-Collection --> option 1: sort by name; option 2: sort by ID and so on). How can I do that?
Thanks!
Thanks for the help. The thing is, when I use this, when a collection is attached, it´s not working --> "This action is not valid when a collection is attached to a Control" .The Jade Table class has the following "sort" attributes (each is an array)
sortAsc, sortCased, sortColumn, sortType
The documentation is good at explaining each of these - note that the sort processing is limited to 6 columns
After setting the required attributes for your sort columns you will need to remember do a table.resort
Return to “Tips and Techniques”
Users browsing this forum: No registered users and 5 guests