Default value for sLengthMenu
Default value for sLengthMenu
I use the folowing code:
[code]
"sLengthMenu": 'Toon \
10\
20\
30\
40\
50\
Alles\
records',
[/code]
I would like the Alles (All) value to be the default. But for one reason or another the value 10 is always the default. What is going wrong? How can I make 'Alles' the default?
[code]
"sLengthMenu": 'Toon \
10\
20\
30\
40\
50\
Alles\
records',
[/code]
I would like the Alles (All) value to be the default. But for one reason or another the value 10 is always the default. What is going wrong? How can I make 'Alles' the default?
This discussion has been closed.
Replies
[code]"iDisplayLength": -1,[/code]
So problem solved.
[code]
$('#datatable_id').dataTable( {
"iDisplayLength": 100,
"oLanguage": {
"sLengthMenu": 'Display '+
'10'+
'100'+
'All'+
' records'
}
} );
[/code]