Default entries per page

Default entries per page

mimicmimic Posts: 43Questions: 0Answers: 0
edited November 2009 in General
I would like to set number of default entries per page but would not like to use combobox for that or any user input. I would like that it is fixed in configuration. I have looked at code and it seems to me that I would have to extend DataTables and duplicate code which is otherwise in combobox onchange event handler. Is there a simpler way?

Replies

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    Hi mimic,

    I think what you want can be done in DataTables no problem here:

    1. Change number of entries per page: iDisplayLength - http://datatables.net/usage/options#iDisplayLength
    2. Disable user selectable length changes: bLengthChange - http://datatables.net/usage/features#bLengthChange

    Regards,
    Allan
  • mimicmimic Posts: 43Questions: 0Answers: 0
    Thanks, I missed this.
This discussion has been closed.