Default show per page
Default show per page
$(document).ready(function () {
$(".DTable").DataTable({
"bFilter": false ,
"order": [[ 0, "desc" ]]
});
});
This gives show
10
25
50
100
How can I get it to have 100 as the default please? "pageLength": 100 doesn't do anything. It is version 1.9.4
Thanks
This discussion has been closed.
Answers
Refer to the 1.9.4 Options docs. I believe you will need to use
iDisplayLength. Datatables 1.9 is very old. Datatables 1.10 was released in 2014 and Datatables 2.0 should be released very soon. You should consider upgrading to the latest version.Kevin