can i give default value instead of 10 as 50 ,100 for rows display

can i give default value instead of 10 as 50 ,100 for rows display

SandeepMSandeepM Posts: 28Questions: 0Answers: 0
edited June 2012 in General
I want to give default value as 50 100 150 200 instead of 10 25 50 100 how can I do that in datatable.
is datatable providing any functionality about it

Replies

  • arjun_adhikariarjun_adhikari Posts: 32Questions: 0Answers: 0
    hello SandeepM

    i think this is possible first you have to initialise the following when you initilalis your datatable

    "iDisplayStart": 20

    this will display 20 rows when the table is initialised
    and to make the drop down according to your specification
    initialise the following

    "aLengthMenu": [[20,100, 150, 200,-1],[20,100, 150, 200,"All"]],

    regards
    Arjun
  • SandeepMSandeepM Posts: 28Questions: 0Answers: 0
    thank you very much
This discussion has been closed.