Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V20.1
  • DiagramNodeMappingInfo.ImageUrl Property

    Specifies the name of a data source field that provides the URL of a shape’s image.

    Namespace: DevExpress.Web.ASPxDiagram

    Assembly: DevExpress.Web.ASPxDiagram.v20.1.dll

    NuGet Package: DevExpress.Web

    Declaration

    [DefaultValue("")]
    public string ImageUrl { get; set; }

    Property Value

    Type Default Description
    String String.Empty

    The field name.

    Remarks

    Tip

    Use the ImageUrl property to customize the image of a node after it is bound to a data source (in the NodeDataBound event).

    <dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="700px"
        NodeDataSourceID="OrgItemDemoDataSource" EdgeDataSourceID="OrgLinkDemoDataSource">
        <Mappings>
            <Node Key="ID" Text="Text" Type="Type" ImageUrl="Picture" />
            <Edge Key="ID" FromKey="FromID" ToKey="ToID" />
        </Mappings>
    </dx:ASPxDiagram>
    
    See Also