how to Identify the multi-sort order?

how to Identify the multi-sort order?

riixriix Posts: 13Questions: 7Answers: 0

Multi-sort using shift-click works great! User however needs to see some indicatin of the sort column order - maybe a little number "1", "2", "3" etc. next to the sort up/down arrow. Anyone know how to achieve this? thx in advance.

Answers

  • allanallan Posts: 63,573Questions: 1Answers: 10,483 Site admin

    Currently the only way DataTables shows this is by grading the background colour of the sorting columns. Less important columns get a lighter background.

    However, having a number is a good idea. Probably not something for the core (unless there are a lot of other votes for this feature - to all: if you are reading this add a comment below if you want to vote for it!), but ideal for a plug-in I think.

    Allan

  • riixriix Posts: 13Questions: 7Answers: 0

    if you might have some suggestion or sample on how I would get started on this, I'll get started on this :) .. is a mandatory requirement for current client. cheers.

  • allanallan Posts: 63,573Questions: 1Answers: 10,483 Site admin

    The way I would probably do it myself is to attach a listener to the order event and update the DOM in the header with the information required on each order event.

    Allan

This discussion has been closed.