deleteRow

Deletes the contents of the row at the provided index and shifts the remaining contents of the sheet up.

Parameters

index Number

The zero-based index of the row

skipDataSourceDelete Boolean optional

If passed true, the method does not delete item from the DataSource.

Example

<div id="spreadsheet"></div>
<script type="text/javascript" charset="utf-8">

    $("#spreadsheet").kendoSpreadsheet();

    var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");

    var sheet = spreadsheet.activeSheet();

    sheet.range("A1:B2").values([ [1, 2], [2, 3] ]);

    sheet.deleteRow(0);
</script>
In this article