select

Gets or sets the selected elements.

Parameters

elements kendo.dataviz.diagram.Connection|kendo.dataviz.diagram.Shape|Array

The diagram element(s) that should be selected.

options Object
options.addToSelection Boolean

If set to true the newly selected items will be added to the existing selection. Otherwise a new selection set is created. The default is false.

Returns

Array The selected diagram elements.

Example - select a shape

<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    shapes: [{
      id: "1"
    }]
  });
  var diagram = $("#diagram").getKendoDiagram();
  diagram.select(diagram.shapes[0]);
</script>
In this article
Not finding the help you need?