How to change iDisplayLength dynamically?

How to change iDisplayLength dynamically?

hariharanhariharan Posts: 4Questions: 0Answers: 0
edited August 2011 in General
Hi,
I am new to datatables.net. How to change iDisplayLength dynamically?

Thanks,
Hari

Replies

  • mixcalmixcal Posts: 7Questions: 0Answers: 0
    Try this

    oTable = $('#example').dataTable();
    var oSettings = oTable.fnSettings();
    oSettings ._iDisplayLength = 200; //your new length here
    oTable .fnDraw();
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    There is a plug-in API method for this: http://datatables.net/plug-ins/api#fnLengthChange

    Allan
  • hariharanhariharan Posts: 4Questions: 0Answers: 0
    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.