isSortable

Returns if a range can be sorted.

Returns

Boolean whether the range can be sorted.

Example

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

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

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

        var sheet = spreadsheet.activeSheet();

        var range = sheet.range("A1:B1");

        if (range.isSortable()) {
            range.sort()
        }
    </script>

In this article