All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ASPxDiagram.ReadOnly Property

Specifies whether the diagram is read-only.

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

[DefaultValue(false)]
public bool ReadOnly { get; set; }
<DefaultValue(False)>
Public Property ReadOnly As Boolean

Property Value

Type Default Description
Boolean

false

true to make the diagram read-only; otherwise, false.

Remarks

Set the ReadOnly option to true to prohibit users from editing the diagram.

<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px" ReadOnly="true">
</dx:ASPxDiagram>

When the ReadOnly property is set to false, use the SetReadOnly(readOnly) method to enable/disable read-only mode on the client side.

NOTE

Diagram page settings are stored in a diagram model. When the ReadOnly property is set to true, the model can not be modified and page settings specified via the SettingsPage property are not in effect.

Run Demo: Read Only

See Also