Does anybody know how to show all rows by default in jQuery datatable?
I have tried this code, but it only shows 10 rows by default.
   $("#adminProducts").dataTable({         "aLengthMenu": [100]     }); 
                There is a option called pageLength . You can set this for show only 5 entries.
The B is the Buttons extension and it tell DataTables where to put each element in the DOM that it creates.
Use:
$('#example').dataTable({     aLengthMenu: [         [25, 50, 100, 200, -1],         [25, 50, 100, 200, "All"]     ],     iDisplayLength: -1 });   Or if using 1.10+
$('#example').dataTable({     paging: false }); 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With