Can't find the class GridSettingsPersister

12 posts, 0 answers
  1. Izik
    Izik avatar
    9 posts
    Member since:
    Jul 2010

    Posted 30 Nov 2010 Link to this post

    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
  2. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 02 Dec 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ted
    Ted avatar
    5 posts
    Member since:
    Apr 2012

    Posted 27 Sep 2012 Link to this post

    Why isn't this class distributed with the Telerik library, wouldn't that be much easier on everyone???
  5. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 02 Oct 2012 Link to this post

    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.
  6. Tim
    Tim avatar
    20 posts
    Member since:
    Jan 2009

    Posted 07 Jun 2013 Link to this post

    Can you put a link to download this CS file in this thread?
  7. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 12 Jun 2013 Link to this post

    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.
  8. Mark
    Mark avatar
    64 posts
    Member since:
    Nov 2009

    Posted 14 Apr 2015 Link to this post

    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

  9. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 15 Apr 2015 Link to this post

    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.

     
  10. John
    John avatar
    43 posts
    Member since:
    Aug 2014

    Posted 23 Jul 2015 in reply to Radoslav Link to this post

    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.  
  11. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 28 Jul 2015 Link to this post

    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
  12. John
    John avatar
    43 posts
    Member since:
    Aug 2014

    Posted 29 Jul 2015 in reply to Radoslav Link to this post

    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!

     

     

  13. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 31 Jul 2015 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017