on 11-07-2018 10:43 AM
I have a table in the view that I want to sort by timestamp so the newest items are on the top.
<Table id="SNatTable" items="{ path: 'StateOfNatureSet', sorter: { path: 'Timestamp', descending: true } }" [...]
But it doesn't work. The table is displayed in "last edited on the bottom" manner (when I edit any field the item wanders on the bottom of the list. The timestamp can't be edited).
I have used this syntax in other places and it worked just fine, but in this view, I can't sort it by any column (no matter if Timestamp or for example Anln1).
How to sort the table properly?
Well, the syntax is correct.
Are you sure that Timestamp field is sortable? Have you checked on the Manifest XML?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sortable is just an indicator, you have to code to sort.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.