Why PageLength isn't working ?
Why PageLength isn't working ?
DaniDee
Posts: 3Questions: 1Answers: 0
Hi, got a table with this options :
(document).ready(function() {
$('#sample-table-1').DataTable( {
"language": {
"lengthMenu": "Afficher _MENU_ prestataire par page",
"pageLength": 50,
"zeroRecords": "Aucun résultat",
"info": " page _PAGE_ sur _PAGES_",
"infoEmpty": "Pas de résultat disponible",
"infoFiltered": "(filtered from _MAX_ total records)"
}
} );
} );
But pageLength dont work, i mean, my table sort only 10 result, thanks
Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I don't think there is a pageLength option for
language
. You can move it outside of yourlanguage
definition for it to work. Here is the doc:pageLength
.Kevin
when i write :
DataTable don't work.
Thanks,
If you look at the browsers console you likely have a syntax error. You are missing a comma, see below:
Kevin
Thanks it's working now