What you need to get started is to set the StorageProviderKey string and then add (either declaratively or programmatically) the corresponding settings to the control. When this is done, you only have to call the SaveState and LoadState methods in the appropriate place in your code. You can see our online example here: Persistence Framework Overview
Another interesting matter is how to save custom settings. This is an easy task, thanks to the OnSaveCustomSettings/OnLoadCustomSettings events. They are raised when the PersistenceManager saves/loads the state. You have to handle the corresponding event and then pass/get your settings as a KeyValuePair<string, ControlSetting>. You can test this functionality online: Persistence Framework Custom Settings
You already know that setting up the Persistence Framework through the code is a breeze, but if you are a design-time fan you can also take advantage of the configuration panel offered for the PersistenceManager (and the proxy, of course).
Starting from the RadControls for ASP.NET AJAX Q1 SP1 release the Persistence Framework is no longer with “beta” status. I encourage you to download and try the aforementioned release which not only adds support for new controls (Filter, ToolBar, RibbonBar, etc) but also improves the persistence for the existing ones (Grid for example).
Should you need an example or more information, I’d suggest that you have a look at our demos and documentation. Also, if you have any additional questions or suggestions, you can post them in the comments below. You know that we highly appreciate your feedback so don’t hesitate to share your thoughts with us.
Subscribe to be the first to get our expert-written articles and tutorials for developers!