The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Is there a way I can add all of my nodes to my DiagramWebControl, providing information in the Node object for which nodes have a parent/child node relationship and then call the layout manager to arrange those nodes?
ADAdministrator Syncfusion Team November 4, 2008 12:51 PM UTC
Hi Bryan,
The parent/child relationship formed in Layoutmanager is determined by the order in which lineconnector is added to the graph manager.
The rank is generated by the GraphLayoutManger for every nodes based on the line connection between the nodes.
Based on the rank, the layout manager will position the nodes.
To override the default behavior, you can inherit DirectedTreeLayout manager and override the methods DoGraphLayout(), MakeLayout(), NormalizeNodes() for positioning the nodes, as follows: