Thank you for writing back.
The referred example creates the hierarchy dynamically as well. However, it uses a custom implementation. You can select the OrgChartForm.cs
from the code dropdown (see the attached screenshot) and follow PopulateWithData
method. The sample data is stored in an XML file. For each node, a new OrgContainerShape
is created and added to RadDiagram
. You can refer to the OrgContainerShape
implementation which is a derivative of RadDiagramContainerShape
. Additional information for container shapes is available here: http://www.telerik.com/help/winforms/diagram-diagram-items-container-shapes.html
Note that you have access to the source code in the Demo application. It is usually located at the following path: C:\Program Files (x86)\Telerik\UI for WinForms Q3 2015\Examples
I hope this information helps. If you have any additional questions, please let me know.