Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82131

sScrollY and DataTables default values

$
0
0
Hi!

I noticed a porblem in DataTables 1.9.4: I'm using
sScrollY: "1"
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
$.extend($.fn.dataTable.defaults, {
                "bPaginate": false,
                "bLengthChange": false,
                "bFilter": false,
                "bScrollCollapse": false,
                "bSort": true,
                "bInfo": false,
                "sScrollY": 1
});

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!

Viewing all articles
Browse latest Browse all 82131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>