[ask] default showing row

[ask] default showing row

1x4n1x4n Posts: 2Questions: 0Answers: 0
edited January 2011 in General
sorry if this question have been asked before but i've been searching in google and can't find the answer
how can i set default row to show in datatables?
we know that datatables set default to 10 and can be changed to 25, 50, 100
i want to set it to 20 at start
i've tried
[code]
"bLengthChange" : 20,
"sLength": 20
[/code]
but still not working

thanx for fast reply and the answer

Replies

  • 1x4n1x4n Posts: 2Questions: 0Answers: 0
    solved, i edited core at datatables.js
    [code]
    this._iDisplayLength = 20;
    [/code]
  • mstrandmstrand Posts: 24Questions: 0Answers: 0
    I've used the iDisplayLength option to do this, e.g.

    "iDisplayLength": 20

    The documentation for this option is here:

    http://www.datatables.net/usage/options
This discussion has been closed.