I'm using: NA 2011.2, C#, MVC3, IE8
Is there an easy way to keep grid settings between page views during a single session?
For example, suppose I have a grid with 20 records per page, I'm looking at page 5 and I have the thrid column sorted ascending. I then click on an item in the grid and select view details which takes me to another page showing the details of the item I'm looking at. I then hit the back button to go back to the grid. Currently, all previous settings are reset.
So, again, is there an easy way to persist grid settings (row sort, filter, current page, number of records per page, etc...) while navigating between pages
Thanks,Tony
Thanks Angel!
As always, good stuff.
Hi,
you can use either cookies or hashing / storage javascript plugins, in order to store the settings there , and before initializing the control check if there are any stored values, and initialize with those instead of the defaults:
Here are some examples:
http://www.quirksmode.org/js/cookies.html
http://pablotron.org/?cid=1557
You can retrieve / set the current page index, the selected cells / rows, and so on using grid's API:
http://www.igniteui.com/help/api/2015.2/ui.iggrid
Hope it helps. Thanks,
Angel