sorting over multiple colums as sorting method for one specific column
sorting over multiple colums as sorting method for one specific column
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.
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.
This discussion has been closed.
Replies
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