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

Problem with Save and Load diagram

2 Answers 114 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Svyatoslav
Top achievements
Rank 1
Svyatoslav asked on 29 Jun 2017, 12:07 PM

Hello, please tell me what I'm doing wrong or is this a bug in the system? When I load a diagram, and then save, the save goes with the changes.

                 RadDiagram diagram = new RadDiagram();
                    diagram.Clear();
                    diagram.Load(Globals.Project.ComponentPlacements.Logic);
                    Globals.Project.ComponentPlacements.Logic = diagram.Save().

 

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 04 Jul 2017, 08:32 AM
Hello Svyatoslav,

Can you please check out the Save the Diagram in the File System help topic if you didn't have the chance to do so, as it demonstrates how the control can be persisted? Note, that this approach can be used only for a default set of predefined properties. In order to be able to save/load custom ones, please, take a look at the Serialization topic.

Hopefully, this helps.

Best Regards,
Stefan X1
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Svyatoslav
Top achievements
Rank 1
answered on 04 Jul 2017, 10:05 AM
Thank you very much. It is was my mistake in serialization
Tags
Diagram
Asked by
Svyatoslav
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Svyatoslav
Top achievements
Rank 1
Share this question
or