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

Saving/Loading Graph using Persistant Framework

1 Answer 61 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 20 Jan 2012, 05:27 AM
Hi was told that its possible to save the layout of a graph (its series definitions/filters/groupings) and somehow save that to a database (such as xml)

I want users to be able to store a custom graph they have created and then be able to load it in at a later date. Is this easily doable ? All i see in the examples are for RadPanes (already implemented) and gridviews (not required). Would love an example of saving a radgraph and its details.

Thanks

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 24 Jan 2012, 05:10 PM
Hi Ian,

You can definitely use the PersistenceFramework to save the visual state of the RadChart. However, in order to do so you'll need to set up a custom property provider for the RadChart control (similarly to the approach used both for the RadGridView and RadDocking controls).

As I am not sure which properties you need to persist, I created a sample solution to get you started. You can further customize it to better suit your needs. Also, I saved the UI properties data in a stream and you can use that stream to save the settings in a database. But the PersistenceManager can also save the layout data in an isolated storage (read more).

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
PersistenceFramework
Asked by
Ian
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or