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

Diagram serialization

3 Answers 11 Views
This is a migrated thread and some comments may be shown as answers.
Tino
Top achievements
Rank 1
Tino asked on 13 Sep 2017, 04:56 AM

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.

3 Answers, 1 is accepted

Sort by
0
Tino
Top achievements
Rank 1
answered on 13 Sep 2017, 05:12 AM

Ok so it's literally 

var serializationInfo = radDiagram1.Serialize();

I'd delete the thread if I could.

0
Tino
Top achievements
Rank 1
answered on 13 Sep 2017, 05:14 AM
Although, some sample serialize/deserialize code would be good as I didn't see any in the samples or anywhere else.
0
Accepted
Dimitar
Telerik team
answered on 13 Sep 2017, 06:39 AM
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.
Asked by
Tino
Top achievements
Rank 1
Answers by
Tino
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or