Save State to save only display length
Save State to save only display length
I'm looking for a way to use DataTable's (1.10.13) "save state" functionality, but I need it to save only the display length, and not the filter, sorting, or anything else. I found some documentation indicating that I need to use "fnStateLoadParams", but I couldn't figure out how to use it.
I spent a while looking for the correct documentation for my version of DataTables, but no luck so far. Could someone point me in the right direction? (either a link to the correct documentation page or a hint as to what to do here?)
Thanks.
This question has an accepted answers - jump to answer
Answers
stateSaveParams might help. It seems kind of the wrong way round, but it enables removing the options you don't want saved.
Thanks! That was probably the page I was looking for
Here is my solution that seems to be working: