Set active sort column without actually sorting data?
Set active sort column without actually sorting data?
![deathtospam](https://secure.gravatar.com/avatar/1c7fec1130fbf0e71cdf261309588a58/?default=https%3A%2F%2Fvanillicon.com%2F1c7fec1130fbf0e71cdf261309588a58_200.png&rating=g&size=120)
Is there a way to explicitly set the state of a single column's TH cell, without actually sorting the underlying table data? I'm doing server-side processing: SQL takes care of sorting the data, after which I set the "aaData" property to render in the proper order. The problem is that I need to set the dataTable header to match the column SQL is sorting on, and the visible table data doesn't match the hidden data.
I was hoping I could do something like set the value of "asSorting" (e.g. [2, "desc"]), but which only affects the visible header CSS styles and does -NOT- actually sort the table data. I hope that makes sense...
I was hoping I could do something like set the value of "asSorting" (e.g. [2, "desc"]), but which only affects the visible header CSS styles and does -NOT- actually sort the table data. I hope that makes sense...
This discussion has been closed.
Replies
Allan