sorting over multiple colums as sorting method for one specific column

sorting over multiple colums as sorting method for one specific column

nemesisnemesis Posts: 1Questions: 0Answers: 0
edited January 2010 in General
Hi,

I am playing around with datatables.

I have two questions which I didnt find answered in the faqs and examples section.

First: is it possible to define the values for the pagination dropdown box (instead of 10 I would like to have 25 as smallest number)?

Second: Can I do multi column sort as sort method for a specific column without writing my own sort function?
There is "aaSorting": [[0,'asc'], [1,'asc']], but this is only for the default view of the table. I would like to have asc: [[0,'asc'], [1,'asc']], and desc: "aaSorting": [[0,'asc'], [1,'desc']], for the second column.

Replies

  • allanallan Posts: 63,205Questions: 1Answers: 10,415 Site admin
    1. http://datatables.net/usage/i18n#oLanguage.sLengthMenu

    2. http://datatables.net/api#fnSort . What you'll need to do is detach the sort handler that DataTables puts on the table and then just ad your own which calls fnSort.

    Regards,
    Allan
This discussion has been closed.