orderable: false is not applied on Select Extension

orderable: false is not applied on Select Extension

mending3mending3 Posts: 16Questions: 9Answers: 0
edited April 2021 in Bug reports

Link to test case: https://codesandbox.io/s/condescending-matsumoto-y2u2u?file=/index.html
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

orderable: false in columnDefs is not applied

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    It looks like it's not ordering on that column to me. Why do you think it is?

    Colin

  • kthorngrenkthorngren Posts: 20,141Questions: 26Answers: 4,735

    I think the confusion might be the initial order. You can use order to change the initial order to column 1 if you want. Then column 0 won't be ordered and you won't see the sorting icons.

    Kevin

  • mending3mending3 Posts: 16Questions: 9Answers: 0

    @colin yea but the sorting icons should have been hidden right?

  • mending3mending3 Posts: 16Questions: 9Answers: 0

    @kthorngren did that but the sorting icons are still not hidden

  • kthorngrenkthorngren Posts: 20,141Questions: 26Answers: 4,735
    Answer ✓

    I don't see that change in your test case. Seems like I'm not able to make changes so I copied your code and data here:
    http://live.datatables.net/raquroye/1/edit

    Using order: [[1, 'asc']], does work. Please update your test case to show the problem when using order: [[1, 'asc']],.

    Kevin

This discussion has been closed.