Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Node and Edge Data Sources

v
po
po
x
Text
v
v
po
Object
Line style
v
Line width
x
+
-
popo
Connector
Type
v
Start
v
End
v
Layered




Tree




Page
Size
v
Orientation
v
po

The DevExpress ASP.NET Diagram (ASPxDiagram) control can load a tree or a graph structure from two data sources: one for shapes (NodeDataSourceID) and another for shape connectors (EdgeDataSourceID). You should add mapping information for a shape's Key and a connector's Key, FromKey and ToKey properties. Optionally, you can specify other mapping properties for shapes and mapping properties for connectors.

The SettingsAutoLayout property allows you to specify an auto-layout algorithm and orientation that the control uses to build a diagram.

To use a data source, handle the NodeInserted and EdgeInserted events to specify key values for new items.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxDiagramDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxDiagramDemos