"iDisplayLength" should respect "aLengthMenu" if present #61

Closed
flc opened this Issue Apr 21, 2012 · 1 comment

Comments

Projects
None yet
2 participants

flc commented Apr 21, 2012

if one specifies the aLengthMenu and doesn't specify iDisplayLength (and aLengthMenu's first item doesn't match to the default 10 of iDisplayLength) it can be confusing.

Check this example, datatable says it's showing 20 entries but it only shows 10:
http://live.datatables.net/irimov/edit#javascript,html,live

Owner

DataTables commented Nov 2, 2012

Really sorry I didn't reply to this - yes this should be done and it now is. Committed in 36fc3cc. It will be releases as part of DataTables 1.10.

@DataTables DataTables closed this Nov 2, 2012

DataTables added a commit that referenced this issue Dec 21, 2012

Update: If aLengthMenu is given, but iDisplayLength is not, DataTable…
…s used to default to using the built in iDisplayLength option. However, this lead to a bit of confusion as to why the first value from aLengthMenu was not used (issue #61 and numerous forum posts). This commit changes that behaviour - the first value from aLengthMenu is used, if iDisplayLength is not given as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment