Gets or sets the selected elements.


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.


Array The selected diagram elements.

Example - select a shape

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