How to cancel a sorted colum?
How to cancel a sorted colum?
jingych
Posts: 2Questions: 0Answers: 0
Hi, guys!
I'm new to use DataTables. Here is my question.
As i'm using JQuery UI Dialog to popup the datatable to show the data. But i triggered the sort action and closed the dialog, when i opened the dialog again, the DataTables was still being the sorted state! Is there any possible to cancel an already sorted column?
Here is my init code, so i can init datatable without default sort action. But i don't know how to cancel the already sorted state.
[code]
$("#table").dataTable({
"aaSorting" : []
})
[/code]
Thanks!
I'm new to use DataTables. Here is my question.
As i'm using JQuery UI Dialog to popup the datatable to show the data. But i triggered the sort action and closed the dialog, when i opened the dialog again, the DataTables was still being the sorted state! Is there any possible to cancel an already sorted column?
Here is my init code, so i can init datatable without default sort action. But i don't know how to cancel the already sorted state.
[code]
$("#table").dataTable({
"aaSorting" : []
})
[/code]
Thanks!
This discussion has been closed.
Replies
Just clear the aaSorting array again!