removeAt

Removes the child element at the specified position.

Parameters

index Number

The index at which the element currently resides.

Example

<div id="surface"></div>
<script>
    var draw = kendo.drawing;
    var group = new draw.Group();

    var pathA = new draw.Path().moveTo(0, 0).lineTo(100, 100);
    var pathB = new draw.Path().moveTo(0, 100).lineTo(100, 0);
    var circle = new draw.Circle(new kendo.geometry.Circle([50, 50], 25));
    group.append(pathA, pathB, circle);

    console.log("Children before removeAt:", group.children.length);
    group.removeAt(1); // Remove pathB
    console.log("Children after removeAt:", group.children.length);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(group);
</script>
In this article
removeAt
Not finding the help you need?
Contact Support