Back to Devexpress

ASPxDiagram.ReadOnly Property

aspnet-devexpress-dot-web-dot-aspxdiagram-dot-aspxdiagram-35e03c3b.md

latest1.9 KB
Original Source

ASPxDiagram.ReadOnly Property

Specifies whether the diagram is read-only.

Namespace : DevExpress.Web.ASPxDiagram

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

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

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

|

Remarks

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

aspx
<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

SetReadOnly(readOnly)

ASPxDiagram Class

ASPxDiagram Members

DevExpress.Web.ASPxDiagram Namespace