How i can show all the rows of my table on a button click, without re-initializing my datatable ?

How i can show all the rows of my table on a button click, without re-initializing my datatable ?

AshdemonzAshdemonz Posts: 2Questions: 1Answers: 0
edited April 2016 in Free community support

I basically want to add a functionality "Show All" by clicking on this, user will be able to see all the records and when clicked on "Show less" it again gets back in previous state.

Any help would be appreciated, i have been looking for solutions all over but could not get any yet :(

Note: i dont want to destroy table and re-initializing it.

Answers

  • AshdemonzAshdemonz Posts: 2Questions: 1Answers: 0

    Okay I got the solution :)

    $("#button").click(fuction (){
    table.pag.len(-1).Draw();
    });

This discussion has been closed.