The script will wrap around the grid constructor and setup events to capture the state. It also checks if you wish to use local or session storage in the browser. Local storage persists across browser closes while session won't. Both are useful for different situations.
Currently, only a limited state is captured:
- Page
- Page size
- Sorts
- Filters
- Grouping
The jquery extension for local storage is just a slightly modified version of Marcus Westin's store.js. Modified to attach to jquery and allow selection between local and session storage.
jquery.storage.js
No comments:
Post a Comment