Sorting icons are visible even when sortable is set to false

Sorting icons are visible even when sortable is set to false

princeofnaxosprinceofnaxos 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.

Answers

  • allanallan Posts: 63,836Questions: 1Answers: 10,518 Site admin

    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 using order).

    That was probably a mistake on my part, but its not an easy one to change due to backwards compatibility.

    Thanks,
    Allan

This discussion has been closed.