Howto disable iDisplayLength

Howto disable iDisplayLength

xuanlocnetxuanlocnet Posts: 1Questions: 0Answers: 0
edited August 2012 in General
Hi everyone!
I want disable iDisplayLength of dataTable to show full row.
But i don`t know how to make it.
Somebody help me ?

Replies

  • arjun_adhikariarjun_adhikari Posts: 32Questions: 0Answers: 0
    hi xuanlocnet,

    try
    [code]
    $('#example').dataTable({
    "iDisplayLength": -1
    });
    [/code]
    this will show all the rows.

    Arjun
  • sm9sm9 Posts: 27Questions: 0Answers: 0
    I've just had this query myself. Adding a value of -1 worked (thanks Arjun), but I wondered if this is a workaround/hack, or whether there's an official way of disabling it? Or is this the official way of disabling it?

    Thanks,

    Stephen
This discussion has been closed.