Draw once without saving state

Draw once without saving state

obs-devobs-dev Posts: 2Questions: 1Answers: 0

I am trying to print all records regardless of the currently displayed page number/length. I am using server side processing so I am doing this by using: table.page.len( -1 ).draw(); However, when printing is complete I would like to return the user to their original state. I believe the easiest way to do this would be to somehow execute .draw() without saving the state then reloading the state when the user returns. Any ideas?

Any guidance is appreciated.

Answers

  • obs-devobs-dev Posts: 2Questions: 1Answers: 0

    So I've come up with a solution to my problem. I am posting in hopes it may help others or someone may recommend a better solution. Anyway, because I am only changing the length for printing I am able to return the user to their original page length setting and page number by using table.page.info(). I have stored this to a variable prior to modifying the length. I then re-draw the table using the variables stored. (table.page.len( info.length ); table.page( info.page ).draw( false );)

This discussion has been closed.