We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

New to Diagram - need help

I've been trying to play with the Diagram control to build programmatically something that appears like the attachment.

I have a database of parent-child relationships, and I am going to want to include text inside the boxes representing people with attributes like Age, etc. I also have a comment that needs to be displayed along-side the connector (the "Born m/d/yyyy" in the sample JPEG [it didn't accept JPEGs, so I had to zip it before I attached it]).

Is there an easy to way to give a dataset with these fields to the Diagram control and have it build something like this?

The one other issue is that i will want to display multiple families at the same time.

How do I do this? The samples in the samples folder don't seem to answer my question. Thanks in advance!



sample_3ba6eff0.zip

1 Reply

DM Dinesh M Syncfusion Team November 17, 2009 02:06 PM UTC

Hi Robert,

Sorry for the inadvertent delay in getting back to you.

Currently we do not have support in Diagram control for populating nodes from the datatable provided and hence we need to create nodes manually from the values of datatable. You can use the DirectedTree LayoutManager(Category: Automatic Layout) to position your nodes automatically and it also does this layouting for the multiple families that you have created. For further information on creating a node and adding label to it please go through the online document in the link provided below.

http://help.syncfusion.com/ug_74/diagramwin/default.html

To Create Nodes and links:
http://help.syncfusion.com/ug_74/diagramwin/ThroughCode.html

Regards,
Dinesh

Loader.
Live Chat Icon For mobile
Up arrow icon