Saving/Loading Graph using Persistant Framework

2 posts, 0 answers
  1. Ian
    Ian avatar
    23 posts
    Member since:
    Jun 2011

    Posted 19 Jan 2012 Link to this post

    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.

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 24 Jan 2012 Link to this post

    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 >>

Back to Top