color

Gets or sets the text color of the range.

Parameters

value String optional

Any valid CSS color.

Returns

String the current 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").color("green");
        sheet.range("A2").color("#a0b0c0");
        sheet.range("B1").color("rgb(255,0, 255)");
    </script>

In this article
Not finding the help you need?