orderFixed post reorder failing to update class

orderFixed post reorder failing to update class

JammySlayerJammySlayer Posts: 43Questions: 12Answers: 2
edited August 2017 in Free community support
orderFixed: {
    post: [1,'asc']
}

When you click on a column that has orderFixed on it, it will allow you to change it between asc and desc, but the icon to indicate which direction it is ordering on fails to update, instead constantly showing the order direction of the orderFixed, despite the data showing in the users altered direction.

See http://live.datatables.net/xigadiqi/1/edit for example

When clicking on the "Position" column in that example I would expect the arrow to switch between asc/desc depending on the used order, rather than sticking to asc.

Answers

  • JammySlayerJammySlayer Posts: 43Questions: 12Answers: 2

    I presume this will need a change to the actual handling of orderFixed by datatables to check if there is already an order on the column? Don't think there is a way to easily do it externally to datatables.

  • zitibizozitibizo Posts: 2Questions: 0Answers: 0

    Bump. I have the exact same problem.

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @zitibizo and @JammySlayer ,

    This is currently in the backlog - I'll report back here when it's addressed though can't say when unfortunately.

    This here is a workaround that may work for you - it's manually flipping the class whenever the order is changed. Hope that does the trick in the meantime,

    Cheers,

    Colin

  • zitibizozitibizo Posts: 2Questions: 0Answers: 0

    Thank you Colin! I'll make do with the workaround for now.

    Looking forward to the fix.

This discussion has been closed.