Your search did not match any results.

Diagram - 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, set the readOnly property to true.

Backend API
@(Html.DevExtreme().Diagram() .ID("diagram") .ReadOnly(true) ) <script type="text/javascript"> $(function () { $.ajax({ url: "@Url.Content("~/Content/SampleData/diagram-structure.json")", dataType: "text", success: function(data) { $("#diagram").dxDiagram("instance").import(data); } }); }); </script>
using System.Web.Mvc; using DevExtreme.MVC.Demos.Models.SampleData; namespace DevExtreme.MVC.Demos.Controllers { public class DiagramController : Controller { public ActionResult ReadOnly() { return View(); } } }
#diagram { height: 700px; }