Skip to main content

DiagramSettings.ReadOnly Property

Specifies whether the diagram is read-only.

Namespace: DevExpress.Web.Mvc

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

Run Demo: Read Only

See Also