Sorting icons are visible even when sortable is set to false
Sorting icons are visible even when sortable is set to false
princeofnaxos
Posts: 26Questions: 9Answers: 0
Version: 1.10.13
If a column is sorted with e.g. { order: [ 0, 'asc'] ] } and the column is defined with { sortable: false, targets: 0 }, then the sorting icons are still displayed for this column. This also happens when no initial order is given at all.
If another column is sortable and the sorting icon is clicked, then the sorting icon of the non-sortable column disappears.
This discussion has been closed.
Answers
You need to change the default ordering (
order
). Even when a column is marked as not orderable, it can actually be ordered via the API (and thus also usingorder
).That was probably a mistake on my part, but its not an easy one to change due to backwards compatibility.
Thanks,
Allan