This is a migrated thread and some comments may be shown as answers.

Can't find the class GridSettingsPersister

11 Answers 204 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Izik
Top achievements
Rank 1
Izik asked on 30 Nov 2010, 10:43 AM
Hello,
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

Sort by
0
Radoslav
Telerik team
answered on 02 Dec 2010, 11:13 AM
Hi Izik,

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
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Ted
Top achievements
Rank 1
Iron
Iron
answered on 27 Sep 2012, 10:38 PM
Why isn't this class distributed with the Telerik library, wouldn't that be much easier on everyone???
0
Radoslav
Telerik team
answered on 02 Oct 2012, 07:22 AM
Hi Ted,

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
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Tim
Top achievements
Rank 1
answered on 07 Jun 2013, 05:48 PM
Can you put a link to download this CS file in this thread?
0
Radoslav
Telerik team
answered on 12 Jun 2013, 06:33 AM
Hi Tim,

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
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Mark
Top achievements
Rank 1
answered on 14 Apr 2015, 01:55 PM

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

0
Radoslav
Telerik team
answered on 15 Apr 2015, 07:19 AM
Hi Matt,

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.

 
0
John
Top achievements
Rank 1
answered on 23 Jul 2015, 11:26 PM
If the Persistence Framework exists, can we at least get a vague hint as to where the  DLL is located or downloaded from?  Using Telerik.Web.UI, in my app, it complains that "The name 'RadPersistenceManager1' does not exist in the current context" upon Build.  I'm missing a reference; but, don't know what DLL to reference.  
0
Radoslav
Telerik team
answered on 28 Jul 2015, 01:56 PM
Hi John,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
John
Top achievements
Rank 1
answered on 29 Jul 2015, 11:37 PM

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!

 

 

0
Radoslav
Telerik team
answered on 31 Jul 2015, 11:26 AM
Hi John,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Izik
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Ted
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 1
Mark
Top achievements
Rank 1
John
Top achievements
Rank 1
Share this question
or