How do you Reset Records Per Page Dropdown?

How do you Reset Records Per Page Dropdown?

davezen1davezen1 Posts: 3Questions: 0Answers: 0
edited May 2012 in General
Given an initialization of this:
[code]
"aLengthMenu": [[-1, 100, 75, 50, 25], ["All", 100, 75, 50, 25]],
[/code]
I want to be able to reset the display drop down for how many records to show. I tried this:

[code]
oSettings._iDisplayLength = -1;
oSettings.oApi._fnReDraw( oSettings );
[/code]

The rows displayed does get reset but the display does not change. I am using Twitter Bootrstrap 1 for the styling.

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Use the length change plug-in: http://datatables.net/plug-ins/api#fnLengthChange :-)

    Allan
This discussion has been closed.