Skip to main content
A newer version of this page is available. .

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; }

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