All docs
V21.2
21.2
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Bind Diagram to Data

You can bind the ASPxDiagram control to the following data source types.

  • Node and Edge Data Sources: two separate lists store information about nodes (shapes) and edges (connectors).
  • Self-Referenced Data Source: a single list that stores nodes (shapes). If a node specifies a Parent Key value, it references another node and defines an edge (connector).

The following table lists the mappings you need to specify so that the control can load the diagram structure.

Required Properties Node and Edge Data Sources Self-Referenced Data Source
Mappings.Edge.Key yes no
Mappings.Node.Key yes yes
Mappings.Node.ParentKey no yes

Optional binding properties allow you to specify element content and appearance.

Handle the NodeDataBound and EdgeDataBound events to customize node or edge settings before the item is rendered.