background

Gets or sets the background color of the cells in the range.

Parameters

value String optional

Any valid CSS color.

Returns

String the current background color of the top-left cell of the range.

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").value("foo");
    sheet.range("A1").background("green");
    sheet.range("A2").background("#a0b0c0");
    sheet.range("B1").background("rgb(255,0, 255)");
</script>
In this article
background
Not finding the help you need?
Contact Support