Removes one or more items from the diagram


items Object|Array

A diagram item or an array of diagram items to remove.

undoable Boolean (default:true)

Whether the removal should be recorded in the undo-redo stack.

Example - removing items

<div id="diagram"></div>

  var Shape = kendo.dataviz.diagram.Shape;
  var diagram = $("#diagram").data("kendoDiagram");

  var shape1 = diagram.addShape(new Shape({x:100, y:100, fill: "red"}));
  var shape2 = diagram.addShape(new Shape({x:400, y:100, fill: "red"}));
  var con = diagram.connect(shape1,shape2);
  diagram.remove([shape1, shape2, con]);
In this article
Not finding the help you need?