How to save pagelength only?
How to save pagelength only?
rotaercz
Posts: 31Questions: 7Answers: 0
I notice that
stateSave: true
also saves the sorting of the columns. Is there a way to only save the pagelength that's been selected?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Add and event handler to the page length changed and use that event to put in in session or local storage.
That sounds pretty complicated. How would I go about doing this?
its easy. Here is a sample.
http://jsbin.com/zizepoh/edit?js,output
Thank you! It works great!
Out of curiosity what is the "select" attribute for?
the select box itself does not have an id but its container div does.
so that syntax will watch for any select boxes that change inside the example_length div. Since there is only one inside that container, it is a safe.
here is a simple demonstration http://jsbin.com/zazulih/edit?html,js,output
Thank you for helping me out. Really appreciate it.