Example of Hierarchical Tree in ASP.NET Core Diagram Control

This sample illustrates a generating hierarchical tree from right to left orientation with external data source.

DEMO
SOURCE
Properties
Appearance
Behavior
Horizontal Spacing
Vertical Spacing

In this example, you can see how to generate a complex hierarchical tree from external data sources. You can also customize the spacing between the objects in the tree. You can use the horizontalSpacing and verticalSpacing properties of layout to customize the space between the objects in the tree. You can use the layoutOrientation property of layout to change the orientation of the tree.

To change the orientation of the tree, click the templates that are added to the property panel.

Injecting Module

Diagram component's features are segregated into individual feature-wise modules. To generate diagrams from an external data source, we need to Inject DataBinding module using Diagram.Inject(DataBinding) method. To automatically arrange the objects in a hierarchical structure, we need to Inject ComplexHierarchicalTree module using Diagram.Inject(ComplexHierarchicalTree) method.

Transform your ASP.NET Core web apps today with Syncfusion ASP.NET Core components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE