Datatable pagination doens't working properly.

Datatable pagination doens't working properly.

vijaynailbitervijaynailbiter Posts: 6Questions: 3Answers: 0

Hi,

Data-table pagination doesn't working properly.

Below is my data table initialization.
$('#dynamic_list').DataTable( {
"order": [[ 0, "desc" ]],
"iDisplayLength": '100',
});

In pagination it's showing me "Showing 1 to 0,100 of 439 entries"

I can see 0,100 that might be create the problem. Not sure.

Can you please help me out on this ?

Thanks

Answers

  • allanallan Posts: 63,871Questions: 1Answers: 10,525 Site admin

    "iDisplayLength": '100',

    You are passing it in as a string rather than a number. See the pageLength documentation - it should be a number you pass in.

    Allan

This discussion has been closed.