insertRow

Inserts a new, empty row at the provided index. The contents of the spreadsheet (including the ones in the current row index) are shifted down.

Parameters

index Number

The zero-based index of the column

skipDataSourceInsert Boolean optional

If passed true, the method does not insert item in 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.insertRow(1);
</script>
In this article