Skip to main content

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 is disabled. In this case, the control creates a diagram layout based on the specified 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 supply additional connector points with the Points property.

Shape and edge point coordinates are specified in Units.

Note

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