I've created a project based on your "OrgChart" sample. I'm trying to modify it so that I can see some connectors on the nodes, but I can't figure it out. Also, I need to add the connectors programmatically. How can I accomplish this?
So far I have this (for the shapes in the diagram toolbox). Not sure if this is right...
So far I have this (for the shapes in the diagram toolbox). Not sure if this is right...
var shape = new RadDiagramShape();
shape.Geometry = ShapeFactory.GetShapeGeometry(CommonShapeType.RectangleShape);
double offset = 0.25;
foreach (var c in connections)
{
var connector = new RadDiagramConnector() { Name = name };
connector.Offset = new Point(1.0, offset);
offset += 0.25;
shape.Connectors.Add(connector);
}
var galleryItem = new GalleryItem(displayName, shape, category);
gallery.Items.Add(galleryItem);