DiagramSettings.ReadOnly Property

Specifies whether the diagram is read-only.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.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 false, use the SetReadOnly(readOnly) method to enable/disable read-only mode on the client side.

Run Demo: Read Only

See Also