Show more entries

Show more entries

roary86roary86 Posts: 3Questions: 0Answers: 0
edited August 2012 in General
Is there a way to show more entries without changing the dataTables.js file?

By default I'd like to show 100 results and I'd also like to add in to the current list 250 and 500 results.

List would then be
10
25
50
100 <~ default
250
500

Replies

  • ThibThib Posts: 51Questions: 2Answers: 0
    Hi roary86, you should use the sLengthMenu option of oLanguage ;-)

    http://datatables.net/usage/i18n#oLanguage.sLengthMenu

    Regards,
    Thibault
  • roary86roary86 Posts: 3Questions: 0Answers: 0
    Thib, thanks for the response. How are you able to change the it from the default selected value of 10?
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Use the iDisplayLength option.
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Oh and you might want to look at using aLengthMenu to add extra options rather than sLengthMenu - its a bit easier to use :-)
  • roary86roary86 Posts: 3Questions: 0Answers: 0
    Allan thanks for the help. Worked perfectly.
This discussion has been closed.