Capturing Sort Column and Direction

Capturing Sort Column and Direction

gridGirlgridGirl Posts: 1Questions: 0Answers: 0
edited October 2012 in DataTables 1.8
I have a nice jQuery datatable happening with sortable columns. A request came in to capture 1) The column that was clicked on and 2) the sort direction at the time of the click. I've looped through various sort related objects in the datatables object but cannot seem to get those two singular values.

For the purpose of this question, I would like the end result to be something like alert('You clicked the column ' + column) and alert('The sort direction you clicked on was ' + sort direction).

How do I accomplish this? As always, thanks in advance.

Replies

  • robertbrowerrobertbrower Posts: 158Questions: 1Answers: 0
    Tip: http://datatables.net/forums/discussion/5136/how-do-i-get-the-sorting-column-text#Item_2
This discussion has been closed.