How to display all record with proper pagination.

How to display all record with proper pagination.

jiggsjiggs Posts: 1Questions: 1Answers: 0

I used below solution

$('#example').dataTable( {
"lengthMenu": [ [10, 25, 50, -1], [10, 25, 50, "All"] ]
} );

But in this selection of "All" option is displaying wrong pagination. Something like "Page 1 of -1000". It should be "Page 1 of 1".
I am workin on Ruby on Rails with server side processing and will_paginatin gem for paginate table.

This discussion has been closed.