How to perform Datatable Ajax Pagination ?

How to perform Datatable Ajax Pagination ?

belsarerohit81belsarerohit81 Posts: 6Questions: 4Answers: 0

How do I Access the iDisplayStart and iDisplayLength Variables on serverside?
Consider I am using type post

This question has an accepted answers - jump to answer

Answers

  • sergio_de_la_lunasergio_de_la_luna Posts: 5Questions: 1Answers: 1
    Answer ✓

    iDisplayStart and iDisplayLength were used before DataTables 1.10.
    In 1.10, use start and length as in:

    draw=4&
    columns[0][data]=0&
    columns[0][name]=&
    columns[0][searchable]=true&
    columns[0][orderable]=true&
    columns[0][search][value]=&
    columns[0][search][regex]=false&
    columns[1][data]=1&
    columns[1][name]=&
    columns[1][searchable]=true&
    columns[1][orderable]=true&
    columns[1][search][value]=&
    columns[1][search][regex]=false&
    ...
    columns[5][data]=&
    columns[5][name]=&
    columns[5][searchable]=false&
    columns[5][orderable]=false&
    columns[5][search][value]=&
    columns[5][search][regex]=false&
    order[0][column]=1&
    order[0][dir]=desc&
    start=10&
    length=10&
    search[value]=&
    search[regex]=false&
    toto=titi&
    queryBeanName=myBeanName
    

    Code above is the body of a POST request in V1.10.7

    You get the same variables when using a GET request but they are stored in the url.

This discussion has been closed.