Skip to main content
A newer version of this page is available. .

Diagram Layout

The control creates a diagram layout based on the Type and Orientation properties. The built-in algorithms include Layered and Tree layouts.

<dx:ASPxDiagram ID="ASPxDiagram1" runat="server">
    <SettingsAutoLayout Type="Layered" Orientation="Vertical" />
    <Mappings>...</Mappings>
</dx:ASPxDiagram>

If the Type property is set to Auto (default value), and both the Left and Top properties are specified, the autolayout feature will be disabled. The control creates a diagram layout based on the provided coordinates. If the position properties are not specified, the Auto type denotes the Layered layout.

If you bind ASPxDiagram to an array of edges (EdgeDataSourceID), you can specify a shape’s connection point where an edge begins (FromPointIndex) and ends (ToPointIndex), and provide additional points for connectors with the Points property.

Shape and edge point coordinates are specified in Units.

Note

If the Type property is set to Layered or Tree, predefined shape coordinates (Left and Top) and edge points (Points) are ignored.