Your search did not match any results.

Read Only Mode

The Diagram component 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 to Read Only mode, pass the true value to the ReadOnly method.

Backend API
@(Html.DevExtreme().Diagram() .ID("diagram") .ReadOnly(true) ) <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; }