Default Pagination Values

Default Pagination Values

rasikowrasikow Posts: 20Questions: 0Answers: 0
edited May 2009 in General
Hi,

First of all, i appreciate you for your wonderful work.
My question is, By default, I want to display only one records.where i have to set?

Thanks in advance

- Zubair

Replies

  • allanallan Posts: 63,230Questions: 1Answers: 10,417 Site admin
    Hi Zubair,

    To change the number of records shown on the first draw you can use iDisplayLength - please see the documentation: http://datatables.net/usage#iDisplayLength . You can also use -1 (in v1.5) as the length to display all records.

    Allan
  • rasikowrasikow Posts: 20Questions: 0Answers: 0
    Thanks Allan

    - Gnaniyar Zubair
  • dgtaylor22dgtaylor22 Posts: 16Questions: 0Answers: 0
    To add to this conversation. If bStateSave is set to true, then this value (iDisplayLength) is only used when the cookie does not exist. I was setting this value and nothing was happening, then I realized it had to do with the value being saved in the cookie.
This discussion has been closed.