Home Forums Porto Admin Template FAQ’s How to change records per page value in datatables

This topic contains 0 replies, has 1 voice, and was last updated by  Support 2 years ago. This post has been viewed 3178 times

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10009462

    Support
    Keymaster

    If you want to change records per page value in datatables you just need to change/add the iDisplayLength and aLengthMenu options in the dataTable initialization:

    assets\javascripts\tables\examples.datatables.default.js:

    $('#datatable-default').dataTable({
    	"iDisplayLength": 5,
    	"aLengthMenu": [[5, 10, 25, 50, -1], [5, 10, 25, 50, "All"]]
    });


Viewing 1 post (of 1 total)