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

Bad graphic result

3 Answers 42 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Thierry
Top achievements
Rank 1
Thierry asked on 03 Mar 2014, 10:54 AM
Hi,

I have an issue with a graphic result with the RadDiagram.
The obtained result is not systematic, but sometimes the connection is not drawn as expected.

This is the way, the diagram is initialized:

this.Diagram.RoutingService.Router = new OrgTreeRouter
{
    TreeLayoutType = TreeLayoutType.TreeDown,
    ConnectionOuterSpacing = 16
};               
 
var settings = new TreeLayoutSettings
{
    TreeLayoutType = TreeLayoutType.TreeDown,
    VerticalSeparation = 100,
    HorizontalSeparation = 40,
    AnimateTransitions = false
};
settings.Roots.Add(this.Diagram.Shapes[0]);
 
this.Diagram.Layout(LayoutType.Tree, settings);
 
this.Diagram.AutoFit(new Thickness(20), false);
 
this.Diagram.UpdateLayout();

Is there a way to get the expected result ?

Best regards,
Thierry

3 Answers, 1 is accepted

Sort by
0
Shawn
Top achievements
Rank 1
answered on 03 Mar 2014, 11:11 PM
Try increasing your VerticalSeparation and see if it will layout correctly then. 

S
0
Thierry
Top achievements
Rank 1
answered on 11 Mar 2014, 10:37 AM
Thanks for your response.

But, it does not explain why the result is sometimes as expected and sometimes not.

Increasing the VerticalSeparation may transform the result in something awful : the connections may take too much space to achieve my goal.
0
Pavel R. Pavlov
Telerik team
answered on 14 Mar 2014, 08:24 AM
Hello Thierry,

I tested the reported behavior on our side with our latest official release and it seems that the code works as expected. Could you please try to isolate the reported behavior in a small project and send it over along with detailed steps to reproduce it?

By doing so we will be able to further investigate the reasons behind the issue. Thank you for your cooperation.

Regards,
Pavel R. Pavlov
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
Diagram
Asked by
Thierry
Top achievements
Rank 1
Answers by
Shawn
Top achievements
Rank 1
Thierry
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
Share this question
or