DataTables 1.9.4 - Showing all entries using aLengthMenu -1 doesn't seem to work for me!
DataTables 1.9.4 - Showing all entries using aLengthMenu -1 doesn't seem to work for me!
vaasugiv
Posts: 5Questions: 0Answers: 0
Hi there,
The below is an excerpt from my PHP application, which overrides the DataTables 1.9.4 plug-in.
oTable=$('#example').dataTable(
{
'bJQueryUI':true,
'bStateSave':true,
'bServerSide':true,
'sAjaxSource':'index.php',
'iDisplayLength': 35,
'aLengthMenu':[[35,'-1'],['Paged','All']],
'bProcessing':true,
'bFilter':true,
'bAutoWidth':false,
'sPaginationType':'full_numbers',
'aoColumnDefs':
[
{ 'bSortable':false,'aTargets':[1] }
],
});
Everything works well except the option 'All' which is supposed to display all the entries on one page. When that option is selected, the display keeps on showing 'Processing..' indefinitely without settling down to show any entries on the page.
Please advise if what Im doing is not right here.
Many thanks in advance,
Vaasugi.
The below is an excerpt from my PHP application, which overrides the DataTables 1.9.4 plug-in.
oTable=$('#example').dataTable(
{
'bJQueryUI':true,
'bStateSave':true,
'bServerSide':true,
'sAjaxSource':'index.php',
'iDisplayLength': 35,
'aLengthMenu':[[35,'-1'],['Paged','All']],
'bProcessing':true,
'bFilter':true,
'bAutoWidth':false,
'sPaginationType':'full_numbers',
'aoColumnDefs':
[
{ 'bSortable':false,'aTargets':[1] }
],
});
Everything works well except the option 'All' which is supposed to display all the entries on one page. When that option is selected, the display keeps on showing 'Processing..' indefinitely without settling down to show any entries on the page.
Please advise if what Im doing is not right here.
Many thanks in advance,
Vaasugi.
This discussion has been closed.
Replies
Allan