How to change options after init ?
How to change options after init ?
pauletienney
Posts: 2Questions: 0Answers: 0
Hello,
It seems simple but I did not find the solution.
How to change any option (eg : the default sorted col) after initialization ?
I tried
[code]
$('.adminDataTable').dataTable({
"aaSorting": [[ 1, "asc" ]]
});
[/code]
but it told me it can not reinitialize datatable.
Thank you for your help and for this great script.
It seems simple but I did not find the solution.
How to change any option (eg : the default sorted col) after initialization ?
I tried
[code]
$('.adminDataTable').dataTable({
"aaSorting": [[ 1, "asc" ]]
});
[/code]
but it told me it can not reinitialize datatable.
Thank you for your help and for this great script.
This discussion has been closed.
Replies
I found it on the API page on function fnSort.
I guess i need one more coffee.