focus

Sets the focus on the diagram.

Example - focus the Diagram

<button id="focusBtn">Focus</button>
<div id="diagram"></div>
<script>
  $("#focusBtn").on("click", function(){
    var diagram = $("#diagram").getKendoDiagram();
    diagram.focus();
  });
  $("#diagram").kendoDiagram({
    dataSource: {
      data: [{ "items": [{ items: [{}] }] }],
      schema: { model: { children: "items" } }
    },
    layout: {
      type: "tree"
    }
  });
</script>
In this article
Not finding the help you need? Improve this article