multi column sorting without shift click?

multi column sorting without shift click?

bill.martinobill.martino Posts: 38Questions: 0Answers: 0
edited December 2010 in General
Is there an easy way to setup multiple column sorting so the user does NOT have to use the shift key when choosing sort columns?

Replies

  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin
    You would need to detach the event listeners DataTables puts on the TH elements and then add your own. The attached functions should call http://datatables.net/api#fnSort which whatever column sorting you want. On the interaction side, how would the user sort a single column if the multiple column sorting is the default?

    Allan
  • anjibmananjibman Posts: 115Questions: 10Answers: 0
    Hi

    Related to this multiple column sorting mine is not working. If I do sorting by using shift key new window open up.

    What is the problem?

    Anjib
  • bill.martinobill.martino Posts: 38Questions: 0Answers: 0
    I am not sure what you refer to by "On the interaction side, how would the user sort a single column if the multiple column sorting is the default?" Can you elaborate?

    I have not tried it but it seems like if I setup fnSortListener as described in the documentation for each column that would enable me to sort each by just clicking? or would that still require the user to do a shift-click.

    thanks!
This discussion has been closed.