≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
How to change iDisplayLength dynamically?
How to change iDisplayLength dynamically?
hariharan
Posts: 4
Questions: 0
Answers: 0
August 2011
edited August 2011
in
General
Hi,
I am new to datatables.net. How to change
iDisplayLength
dynamically?
Thanks,
Hari
Replies
mixcal
Posts: 7
Questions: 0
Answers: 0
August 2011
Try this
oTable = $('#example').dataTable();
var oSettings = oTable.fnSettings();
oSettings ._iDisplayLength = 200; //your new length here
oTable .fnDraw();
allan
Posts: 65,835
Questions: 1
Answers: 10,953
Site admin
August 2011
There is a plug-in API method for this: http://datatables.net/plug-ins/api#fnLengthChange
Allan
hariharan
Posts: 4
Questions: 0
Answers: 0
August 2011
Hi,
Thanks for yours reply.
I want to change to the display length when i click the buttion.
Thanks,
Hari
This discussion has been closed.
Replies
oTable = $('#example').dataTable();
var oSettings = oTable.fnSettings();
oSettings ._iDisplayLength = 200; //your new length here
oTable .fnDraw();
Allan
Thanks for yours reply.
I want to change to the display length when i click the buttion.
Thanks,
Hari