Saveing state to the database

6 posts, 1 answers
  1. Tomasz
    Tomasz avatar
    6 posts
    Member since:
    Oct 2013

    Posted 11 Jul 2014 Link to this post

    Hi telerik team,
    I'm looking for the example how to save the state of the RadPivotGrid to the database.
    I'v seen the http://demos.telerik.com/aspnet-ajax/pivotgrid/examples/applicationscenarios/persisting-radpivotgrid-settings/defaultcs.aspx
    but there is only saving somewhere at the server and it is connected with session.
    It would be great to use something like that
    string state = radPivotGrid.SaveState();
    radPivotGrid.LoadState(state);
    Of course, there isn't such functionality, so how to workaround the problem?

    Regards
    Tomek
  2. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 15 Jul 2014 Link to this post

    Hi Tomasz,

    I'm attaching a sample application to this thread that presents a possible approach for saving he state not in a session but in simple xml file. The data from the file could be easily pushed to the SQL DataBase.
    Give it a try and verify if it helps.

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Tomasz
    Tomasz avatar
    6 posts
    Member since:
    Oct 2013

    Posted 16 Jul 2014 in reply to Maria Ilieva Link to this post

    Hi Maria,
    Thank you for sample application.
    Now I understand how it works.
    I think I would manage with the rest.

    Regards,
    Tomek
  4. newp
    newp avatar
    15 posts
    Member since:
    Jan 2017

    Posted 10 Jan in reply to Maria Ilieva Link to this post

    Hi,

    How can I implement this with asp.net 3.5 vb.net?

    Thanks

  5. newp
    newp avatar
    15 posts
    Member since:
    Jan 2017

    Posted 10 Jan in reply to newp Link to this post

    How can I use this example but without session and load xml ?

  6. Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 13 Jan Link to this post

    Hello,

    You can implement a custom storage provider and store the state in the database directly. Please check out the following help article which elaborates more on this matter.

    Regards,
    Kostadin
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top