Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy