Diagram Layout Problem

1 Answer 67 Views
Diagram
yuki
Top achievements
Rank 2
Iron
Iron
Iron
yuki asked on 11 Apr 2023, 02:25 AM | edited on 11 Apr 2023, 09:27 AM

Hi. New here, still getting my hands on Telerik.

I want to draw a diagram in tree layout, and I followed the documentation, added LayoutSettings.

The shapes and connections for the diagram are generated in C# code.

But what I got was nothing near what is shown in the documentation and demo. The shapes are overlapping each other. The connections between shapes look weird. You can see that in file problem_diagram.png. In fact, I have 8 shapes in this diagram, but the shapes are overlapping at the top left corner, so you can only see 5 shapes. I dragged the shapes so that all shapes can be seen in file dragged_diagram.png.

update: I solved the problem.


Rumen
Telerik team
commented on 11 Apr 2023, 11:55 AM

Hi Yuki,

Welcome to the Telerik AJAX forums! We are glad to have you on board!

I am glad that you have found a solution to the problem. It would be great if you share with the community what the problem was related to and how you solved it.

1 Answer, 1 is accepted

Sort by
1
Accepted
yuki
Top achievements
Rank 2
Iron
Iron
Iron
answered on 12 Apr 2023, 01:54 AM
I renamed all the shape.Id to simple names like 's0','s1','s2',... and the problem is solved!
Rumen
Telerik team
commented on 12 Apr 2023, 07:36 AM

Thank you for sharing the solution! I converted your comment to an answer.
Tags
Diagram
Asked by
yuki
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
yuki
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or