Nevron Forum

Binding diagram to cusom data

https://www.nevron.com/Forum/Topic3400.aspx

By yoav Roytenberg - Thursday, April 22, 2010

I need the diagram to bound to my custom tree which is actually composed of nodes, and for each node, there is a list of nodes:

class MyNode
{
MyNode parent;
List childrenList;
int ID;
///Other data

}

How can it be done? I saw in your examples how to bind the diagram to .mdb file using NTreeDataSourceImporter, but i could not use it with my data structure.
I also tried manually creating shapes and setting ActiveLayer.AddChild, but I don't want to handle the shapes coordinates my self, I have a feeling I miss somethig here.
By Nevron Support - Thursday, April 22, 2010

Hi,

You can manually create the shapes and then apply an automatic layout on them, so you do not have to worry about coordinates. Please, take a look at the online documention for more information on the supported layouts. Focus on the topics in Diagram for .NET -> User's Guide -> Layouts.