Back to Devexpress

DiagramMappingInfo.Key Property

aspnet-devexpress-dot-web-dot-aspxdiagram-dot-diagrammappinginfo.md

latest2.1 KB
Original Source

DiagramMappingInfo.Key Property

Specifies the name of a data source field that provides node or edge keys.

Namespace : DevExpress.Web.ASPxDiagram

Assembly : DevExpress.Web.ASPxDiagram.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("ID")]
public string Key { get; set; }
vb
<DefaultValue("ID")>
Public Property Key As String

Property Value

TypeDefaultDescription
String"ID"

The field name.

|

Remarks

Online Demo

Diagram - Data Binding

Example

aspx
<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px" Units="Px"
    NodeDataSourceID="FlowNodeDemoDataSource" EdgeDataSourceID="FlowEdgeDemoDataSource" >
    <SettingsAutoLayout Type="Layered" Orientation="Vertical" />
    <Mappings>
        <Node Key="ID" Type="Type" Width="Width" Height="Height" Left="Left" Locked="Locked" Style="Style" 
        Text="Text" TextStyle="TextStyle" Top="Top" ZIndex="ZIndex"/>
        <Edge Key="ID" FromKey="FromID" ToKey="ToID" Text="Text" FromLineEnd="StartTip" FromPointIndex="StartPoint" 
        LineType="Type" Locked="Locked" Style="Style" TextStyle="TextStyle" ToLineEnd="EndTip" 
        ToPointIndex= "EndPoint" ZIndex="ZIndex"/>
    </Mappings>
</dx:ASPxDiagram>

See Also

Bind Diagram to Data

DiagramMappingInfo Class

DiagramMappingInfo Members

DevExpress.Web.ASPxDiagram Namespace