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

XML Deserialized graph has corrupted final element?

2 Answers 34 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 12 Nov 2014, 04:11 PM
When diagram.Load( xmlstring) is called, the last element of diagram.Connections has correct Source and Target properties.

After layout (I believe  diagram.AutoFitAsync but perhaps also diagram.BringIntoView) this last element is corrupted such that the Target property becomes null.

The corresponding Shape in diagram.Shapes also loses the corresponding IncomingLink.

So to recap, the Connections/Shapes look correct directly after Load, but then later the last element of Connections loses its Target.

Because this is the last element of the enumeration I wonder if there is some kind of weird edge case doing this.

For what its worth I've attached a Visio of the graph. The edge that goes wrong is an inbound edge from "dd" to "Attitudes 6e"

2 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 13 Nov 2014, 09:59 AM
Hello Andrew,

We are currently not aware of similar issue reported in the RadDiagram. We tested our OrgChart demo with save / load and re-layout and everything worked as expected. Is it possible for you to elaborate a bit more on your scenario - your ViewModels, your GraphSource, how you save and load ? Is it an option for you to send us an isolated sample in a new support ticket that we can investigate locally and find the root cause of this issue. This will be highly appreciated. Thank you in advance for your cooperation.

Regards,
Petar Mladenov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Andrew
Top achievements
Rank 1
answered on 17 Nov 2014, 02:05 AM
My apologizes -- I created a small simple test project and the bug disappeared. It must be in my own code somewhere. I will let you know if the status changes.
Tags
Diagram
Asked by
Andrew
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or