Added length options but default stays same...

Added length options but default stays same...

runelynxrunelynx Posts: 5Questions: 0Answers: 0
edited December 2013 in General
Hi again ;)

I've set some new length options for my datatable - but when I first load the page it still gives me only 10 results -- and I want 50 to be the new default. I guess I'm missing a parameter in here but I don't see which one on the docs page. Any hints?

$('#sitelog').dataTable( {
"aLengthMenu": [[50, 250, 500, 1000, 5000], [50, 250, 500, 1000, 5000]],
"sPaginationType": "full_numbers"
} );

http://www.runic-paradise.com/sitelog.php

/Andrew

Replies

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    Try iDisplayLength :
    http://datatables.net/usage/options
  • runelynxrunelynx Posts: 5Questions: 0Answers: 0
    worked like a charm, thanks :) will save that parameter list!
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Full list of options is available here: http://datatables.net/ref .

    Allan
This discussion has been closed.