Back to Devexpress

DiagramSettings.ReadOnly Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-diagramsettings-a8d8b019.md

latest1.5 KB
Original Source

DiagramSettings.ReadOnly Property

Specifies whether the diagram is read-only.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public bool ReadOnly { get; set; }
vb
Public Property [ReadOnly] As Boolean

Property Value

TypeDescription
Boolean

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

|

Remarks

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

cshtml
@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

DiagramSettings Class

DiagramSettings Members

DevExpress.Web.Mvc Namespace