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

Saveing state to the database

5 Answers 136 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Tomasz
Top achievements
Rank 1
Tomasz asked on 11 Jul 2014, 07:44 AM
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

5 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 15 Jul 2014, 11:56 AM
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.

 
0
Tomasz
Top achievements
Rank 1
answered on 16 Jul 2014, 12:48 PM
Hi Maria,
Thank you for sample application.
Now I understand how it works.
I think I would manage with the rest.

Regards,
Tomek
0
newp
Top achievements
Rank 1
answered on 10 Jan 2017, 10:21 AM

Hi,

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

Thanks

0
newp
Top achievements
Rank 1
answered on 10 Jan 2017, 10:38 AM

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

0
Kostadin
Telerik team
answered on 13 Jan 2017, 08:09 AM
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.
Tags
PivotGrid
Asked by
Tomasz
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Tomasz
Top achievements
Rank 1
newp
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or