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

How to Layout a diagram inner the diagram

3 Answers 89 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
rui
Top achievements
Rank 1
rui asked on 27 Dec 2017, 06:13 AM

My diagram size is fixed.

When the items is many(over 100 or more), then i layout the diagram

SugiyamaSettings settings = new SugiyamaSettings()
            {
                VerticalDistance = 10d,
                HorizontalDistance = 5d,
            };
            transDiagram.Layout(LayoutType.Sugiyama, settings);

some items is out of the diagram

How to let the items inner the diagram when items is horizontal or vertical overflow  

3 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 29 Dec 2017, 01:04 PM
Hello,

My understanding is that you want to fit the RadDiagram inside the Window that is hosting it. If this is the case you can use RadDiagram's AutoFit method in order to achieve that.

Please let me know if this works for you or if you had something else in mind.

Regards,
Vladimir Stoyanov
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
rui
Top achievements
Rank 1
answered on 03 Jan 2018, 08:40 AM

 

Hello  Thanks for your answer

When the items is many , AutoFit method  overall the whole diagram size including the shape,That's not what I need

I  wish the shape is not change small, the left and right edge of diagram  is fixed ,When the items is many call the Layout method, if the space  is not enough  can display a vertical scrollbar   

0
Vladimir Stoyanov
Telerik team
answered on 04 Jan 2018, 04:44 PM
Hello,

If you want to display a vertical or horizontal scrollbar inside your RadDiagram, you can check out the Display ScrollViewer Inside the Diagram article. Please let me know if this works for you.

Regards,
Vladimir Stoyanov
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.
Tags
Diagram
Asked by
rui
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
rui
Top achievements
Rank 1
Share this question
or