All docs
V19.2
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.

DiagramSettings.ReadOnly Property

Specifies whether the diagram is read-only.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public bool ReadOnly { get; set; }
Public Property ReadOnly As Boolean

Property Value

Type Description
Boolean

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

Remarks

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

@Html.DevExpress().Diagram(settings => {
    settings.Name = "Diagram";
    settings.ReadOnly = true;
}).Import(Model).GetHtml()

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

Online Demo

Diagram - Read Only

See Also