How can I check if a specific column is orderable?

How can I check if a specific column is orderable?

gastonar5gastonar5 Posts: 3Questions: 1Answers: 0

I have a DataTable with a few columns and rows, and I want to check which columns are orderable. Is there any way to do so? Thanks!

Answers

  • gastonar5gastonar5 Posts: 3Questions: 1Answers: 0

    I'm currently checking this way, but it doesn't seem like the most elegant/correct/robust workaround.

    datableAPI.context[0].aoColumns[index].orderable
    
  • gastonar5gastonar5 Posts: 3Questions: 1Answers: 0

    Another potential workaround:

    datatableAPI.column(0).header().ariaSort
    
Sign In or Register to comment.