DiagramSettings.ReadOnly Property

Specifies whether the diagram is read-only.

Namespace: DevExpress.Web.Mvc

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


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

Property Value

Type Description

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


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

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

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

Run Demo: Read Only

See Also