Default show per page

Default show per page

plwplw Posts: 34Questions: 13Answers: 0
$(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

Answers

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974

    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

Sign In or Register to comment.