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!

vaasugivvaasugiv Posts: 5Questions: 0Answers: 0
edited October 2013 in DataTables 1.9
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.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Link to a test case - as noted in the forum rules please.

    Allan
This discussion has been closed.