[bug] Number of rows shown not set when providing sScrollY
[bug] Number of rows shown not set when providing sScrollY
koosvdkolk
Posts: 169Questions: 0Answers: 0
[code]$('#example').dataTable({"sScrollY": "500px"});[/code]
Expected behavior: +/- 16 rows being shown, as there is enough vertical space
Observed behavior: +/-10 rows being shown
http://live.datatables.net/ayepep/edit#javascript,html,live
Expected behavior: +/- 16 rows being shown, as there is enough vertical space
Observed behavior: +/-10 rows being shown
http://live.datatables.net/ayepep/edit#javascript,html,live
This discussion has been closed.
Replies
i.e.
[code]
$(document).ready(function() {
$('#example').dataTable({"sScrollY": "500px","iDisplayLength":-1});
} );
[/code]
http://live.datatables.net/adobob/3/edit#javascript,html,live
Allan
[quote]The default for paging to be enabled and show 10 records - that's why you are getting 10 records :-)[/quote]
Mmm.... doesn't it make sense to calculate the number of rows in the pagination feature, based on the amount of vertical space? I have 1600+ rows, and should paginate.
I'll have a think about how that might be implemented, but it will likely be v1.11 before I can put that in now.
Allan