Capturing Sort Column and Direction
Capturing Sort Column and Direction
gridGirl
Posts: 1Questions: 0Answers: 0
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.
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.
This discussion has been closed.
Replies