Diagram serialization

4 posts, 1 answers
  1. Tino
    Tino avatar
    46 posts
    Member since:
    Jul 2017

    Posted 12 Sep Link to this post

    Maybe I missed the docs for this, but how do we serialize a diagram? Thanks.

    Serialization - RadDiagram supports serializing and deserializing diagramming objects into and from XML documents.

  2. Tino
    Tino avatar
    46 posts
    Member since:
    Jul 2017

    Posted 13 Sep in reply to Tino Link to this post

    Ok so it's literally 

    var serializationInfo = radDiagram1.Serialize();

    I'd delete the thread if I could.

  3. Tino
    Tino avatar
    46 posts
    Member since:
    Jul 2017

    Posted 13 Sep Link to this post

    Although, some sample serialize/deserialize code would be good as I didn't see any in the samples or anywhere else.
  4. Answer
    Dimitar
    Admin
    Dimitar avatar
    1994 posts

    Posted 13 Sep Link to this post

    Hi Tino,

    You can use the Save and Load methods. Here is an example:
    string diagramShapes;
    private void radButton1_Click(object sender, EventArgs e)
    {
        diagramShapes = radDiagram1.Save();
    }
     
    private void radButton2_Click(object sender, EventArgs e)
    {
        radDiagram1.Load(diagramShapes);
    }

    Indeed there is no article for this and we will add one when possible. 

    Should you have any other questions do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik
    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