I want to save the settings in the RadGrid.
The example shows that I need to use the GridSettingsPersister Class, but the class does not exist in the Telerik.Web.UI dll (I have the Q3 2010 version).
I even tried to look for it using reflection.
Where is this class hiding?
Thanks in advanced.
Izik
11 Answers, 1 is accepted
To achieve the desired functionality you could try creating the GridSettingsPersister.cs file and place it in your project then you could copy the provided code from the following documentation article, which contains the definition of the GridSettingsPersister class along with a couple of other helper classes that implement setting persistence for RadGrid:
http://www.telerik.com/help/aspnet-ajax/grdsavingsettingsonperuserbasis.html
Or you could copy the code from the GridSettingsPersister.cs file in the following online example:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx
Additionally you could find the GridSettingsPersister.cs into the ...\Telerik\RadControls\Live Demos\App_Code\Grid folder of the installed RadControls in your PC.
I hope this helps.
Regards,
Radoslav
the Telerik team

The GridSettingsPersister is a helper class and it not belongs to the RadControls code. It contains a custom implementation which persists runtime settings of the RadGrid in a variety of formats. For clients convenience, the functionality is isolated in a single class placed into the "...\Telerik\RadControls\Live Demos\App_Code\Grid" folder.
Kind regards,
Radoslav
the Telerik team

On the following online example you can find the GridSettingsPersister declaration.
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx
Additionally please note that since Q1 2013 we have RadPersistenceFramework which provides the ability to preserve and restore the state of RadControls.
More information you can find here:
http://www.telerik.com/help/aspnet-ajax/persistence-framework-overview.html
http://demos.telerik.com/aspnet-ajax/persistence-framework/examples/custom-storage-provider/defaultcs.aspx
I hope this helps.
Regards,
Radoslav
Telerik

Hi Tim,
I previously have used the GridSettingsPersister before the RadPersistenceFramework was available.
The stored settings are not compatible with each other.
Is there any code which will allow us to convert our clients settings to the new RadPersistenceFramework format?
Regards
Unfortunately GridSettingsPersister and RadPersistenceFramework behaves in a different way and there is not any compatibility between them. The RadPersistenceFramework is more sophisticated and it saves more settings in a different way than the GridSettingsPersister.
In your case you can use both of them and detect if the settings are saved with GridSettingsPersister or RadPersistenceFramework. Every new stage of the controls should be saved with RadPersistenceFramework. In this way after some time most of the cases will be saved by using the RadPersistenceFramework and you can remove the GridSettingsPersister.
Regards,
Radoslav
Telerik
See What's Next in App Development. Register for TelerikNEXT.

The Persistence Framework is located in the Telerik.Web.UI.dll. Also based on the provided information is hard to say why you receive such error. This error is thrown when you do not define the object with the id which you use.
More information about the error you can find here:
http://stackoverflow.com/questions/706603/the-name-controlname-does-not-exist-in-the-current-context
http://stackoverflow.com/questions/19027025/name-does-not-exist-in-the-current-context
Also on the following link you can find live examples which use the Persistence Framework:
http://demos.telerik.com/aspnet-ajax/persistence-framework/examples/overview/defaultcs.aspx
I hope this helps.
Regards,
Radoslav
Telerik

To elaborate,I was specifically getting an error upon Build of my web app: "The name 'RadPersistenceManager1' does not exist in the current context". The app doesn't complain until I do a Build. Then, I get the blue squiggly line under RadPersistenceManager1 in code-behind. In another thread, I found that if I 'View In Browser' the aspx page, I can circumvent the pre-build process. It then gives me another error: Unable to read storage content. Could not find file 'c:\...\visual studio 2013\Projects\...\App_Data\TelerikAspNetRadControlsPersistedState'.
Am I supposed to have something in the App_Data folder? If so, none of the Telerik doc mentions anything about it!
I am sending you a simple web site example which demonstrates grid’s persistence with RadPersistenceManager. Please check it out and let me know if it helps you.
Looking forward for your reply.
Regards,
Radoslav
Telerik