How to view all items when page loads

How to view all items when page loads

kingdonkingdon Posts: 1Questions: 1Answers: 0

I want to set all items view-able when page loads, then user can choose the limit of it.

So let me know all the steps.

Thanks in advance :)

Answers

  • mRendermRender Posts: 151Questions: 26Answers: 13
    $('#example').dataTable( {
      "pageLength": -1,
      "lengthMenu": [ [10, 25, 50, -1], [10, 25, 50, "All"] ]
    } );
    
This discussion has been closed.