pageLength and displayLength issuse
pageLength and displayLength issuse

in DataTables 2
In my DataTable initialization I wanted to change the pageLength and displayLength to 15 , but when I do the 'entries per page' does not show the number.
It works when I change it to 10. What wrong with using 15 entries per page?
pageLength: 15,
layout: {
top2Start: 'pageLength',
topStart: 'buttons',
topEnd: 'search',
bottomStart: 'info',
bottomEnd: 'paging'
},
fixedHeader: true,
lengthMenu: [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
displayLength: 15,
paginationType: 'full_numbers',
language: {search: 'Table Search: '},
order: [[0, 'asc'], [6, 'asc']],
This question has an accepted answers - jump to answer
Answers
Try adding
15
to thelengthMenu
option.Kevin
Yup, exactly that. If you set it to a value that isn't in the list, it can't display it
Allan
Duhoooo I missed that. Thanks fellows.