[ask] default showing row
[ask] default showing row
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
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
This discussion has been closed.
Replies
[code]
this._iDisplayLength = 20;
[/code]
"iDisplayLength": 20
The documentation for this option is here:
http://www.datatables.net/usage/options