Your search did not match any results.

Read Only Mode

Note that the Diagram widget is in the community technology preview (CTP) development stage.

The Diagram widget can operate in Read Only mode. In this mode, users are not permitted to edit a diagram; therefore, most of the UI elements are disabled. It is for this reason that the Toolbox and Properties panel in this demo are hidden.

To switch the Diagram widget to Read Only mode, set the readOnly option to true.

@(Html.DevExtreme().Diagram() .ID("diagram") .ReadOnly(true) .PropertiesPanel(pp => pp .Enabled(false) ) .Toolbox(t => t .Visible(false) ) ) <script type="text/javascript"> $(function () { $.ajax({ url: "@Url.Content("~/SampleData/diagram-structure.json")", dataType: "text", success: function(data) { $("#diagram").dxDiagram("instance").import(data); } }); }); </script>
using DevExtreme.NETCore.Demos.Models.SampleData; using Microsoft.AspNetCore.Mvc; namespace DevExtreme.NETCore.Demos.Controllers { public class DiagramController : Controller { public IActionResult ReadOnly() { return View(); } } }
#diagram { height: 700px; }