You can iterate the Shapes collection of the diagram store whatever information is necessary. It is also possible to use the SaveLoad API
and retrieve the XML representation of the entire control. This will include information about the shapes names, position, connections etc. Calling the Save method on the diagram will also fire the ShapeSerialized
event for each of the shapes. You can handle it add access the entity object and its properties. The event also exposes a SerializationInfo object giving information about the serialized data per shape:
sender, Telerik.Windows.Diagrams.Core.SerializationEventArgs<Telerik.Windows.Diagrams.Core.IShape> e)
RadDiagramShape shape = e.Entity
text = shape.Text;
Telerik.Windows.Diagrams.Core.Point position = shape.Position;
serializedText = e.SerializationInfo[SerializationConstants.ShapeText]?.ToString();
serializedPostion = e.SerializationInfo[SerializationConstants.Position]?.ToString();
sender, EventArgs e)
I hope this will help. Let me know if you have other questions.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.