How to add options in ColumnFilterWidgets after initializing the plugin

How to add options in ColumnFilterWidgets after initializing the plugin

emamutemamut Posts: 1Questions: 0Answers: 0
edited March 2014 in Plug-ins
Hi there:
I have the following code in a file called initializing_jquery_datatables.js:
[code]
$(document).ready(function() {
$('.table').dataTable( {
"sDom": "<'row'W<'row'<'col-md-6'l><'col-md-6'f>r>t<'row'<'col-md-6'i><'col-md-6'p>>T",
"sPaginationType": "bootstrap",
"bDestroy": false
...
});
[/code]

I filter and exclude some columns in another js file like this:
[code]
$.extend( true, $.fn.dataTable.defaults, {
"oColumnFilterWidgets": {
"aiExclude": [ 10 ]
}
});
[/code]
And doesn't work
This discussion has been closed.