sScrollY and DataTables default values
sScrollY and DataTables default values

Hi!
I noticed a porblem in DataTables 1.9.4: I'm using [code]sScrollY: "1"[/code] on all my Tables, then the table-header stays in place (fixed header) and the entries are scrollable.
This works perfectly.
But now I wanted to set some default values for all DataTables with [code]$.extend($.fn.dataTable.defaults, {
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bScrollCollapse": false,
"bSort": true,
"bInfo": false,
"sScrollY": 1
});[/code]
As soon as I do that (it doesn't matter for which values I set default values, can also be only one, "bSort" for instance), the sScrollY-option doesn't work anymore on all tables.
When i set the default values in the JS-file directly, everything works like a charm. But i have to set the oLanguage property on runtime because I have to set the values depending on the users language.
Any help would be greatly appreciated!
I noticed a porblem in DataTables 1.9.4: I'm using [code]sScrollY: "1"[/code] on all my Tables, then the table-header stays in place (fixed header) and the entries are scrollable.
This works perfectly.
But now I wanted to set some default values for all DataTables with [code]$.extend($.fn.dataTable.defaults, {
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bScrollCollapse": false,
"bSort": true,
"bInfo": false,
"sScrollY": 1
});[/code]
As soon as I do that (it doesn't matter for which values I set default values, can also be only one, "bSort" for instance), the sScrollY-option doesn't work anymore on all tables.
When i set the default values in the JS-file directly, everything works like a charm. But i have to set the oLanguage property on runtime because I have to set the values depending on the users language.
Any help would be greatly appreciated!
This discussion has been closed.