Click on an orderable: false column header refresh the datatable for nothing
Click on an orderable: false column header refresh the datatable for nothing

I found that adding data-dt-order="disable" to the <th> fix this, but is it normal?
I think it is since we upgraded to version 2.
Answers
I'm guessing you have complex headers like this example. I copied that example into this test case:
https://live.datatables.net/kobezuqo/1/edit
Using
data-dt-order="disable"
on thecolspans
you don't want to sort is probably best. It seems settingcolumns.orderable
for these columns leads to some unexpected behavior. The test case has this:Clicking on any of the
Contact
orDirect
th
elements doesn't sort. However clicking onHR Info
for the Office column does perform a sort but the sorting icon doesn't update. @allan can comment on the specific behavior.Kevin
The sorting icon doesn't update for "HR info" as it is looking for sorting to be applied to all three columns that the header cell covers. But sorting can't be applied to the office column, thus the icon isn't updated. You'll notice that it does on "Position" though, since it covers the two columns which are sorted on.
Interesting one... I think I'm happy with that behaviour for the moment, but I will consider options.
Allan