columnWidth

Gets or sets the width of the column at the given index.

Parameters

index Number

The zero-based index of the column

width Number optional

If passed, the method will set the width of the column at the passed index.

Example

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

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

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

    var sheet = spreadsheet.activeSheet();

    sheet.columnWidth(1, 100);
</script>
In this article