selectAll

Selects all shapes and the connections between them (without the point-to-point connections).

Example - select all shapes

<button id="selectBtn">Select all shapes</button>
<div id="diagram"></div>
<script>
  $("#selectBtn").on("click", function(){
    var diagram = $("#diagram").getKendoDiagram();
    diagram.selectAll();
  });
  $("#diagram").kendoDiagram({
    shapes:[
      {
        id:"1",
        content:{
          text: "State 1"
        },
        x: 20,
        y: 20
      },
      {
        id:"2",
        content: {
          text: "State 2"
        },
        x: 160,
        y: 20
      },
      {
        id:"3",
        content: {
          text: "State 3"
        },
        x: 160,
        y: 160
      }
    ],
    connections:[
      {
        from: "1",
        to: "2"
      },{
        from: "2",
        to: "3"
      }
    ]
  });
</script>
In this article