How to change records per page value in datatables

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

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)

This topic is marked as "RESOLVED" and can not rceive new replies.