Multiple header sort
Multiple header sort
Hi Allan,
I'm using datatable with some kind of "double header".
[code]
Name
Price
Start
Update
End
[/code]
All columns are sortable, but only the first row-header works like a sortheader, the second row-header looks like a header but it doesn't has the specific sort icons and doesn't perform any sort.
Q: Is is possible to make the second row-header works like a sortable one? If 'yes', how?
Hope you understand my question.
Thank you for your great plugin!!
Tudor.
I'm using datatable with some kind of "double header".
[code]
Name
Price
Start
Update
End
[/code]
All columns are sortable, but only the first row-header works like a sortheader, the second row-header looks like a header but it doesn't has the specific sort icons and doesn't perform any sort.
Q: Is is possible to make the second row-header works like a sortable one? If 'yes', how?
Hope you understand my question.
Thank you for your great plugin!!
Tudor.
This discussion has been closed.
Replies
but you can always add any click handlers to any TH cells and use the API function fnSort to sort by whichever criteria you want.
http://www.datatables.net/ref#fnSort
Allan