Kendo ui 清除剑道电子表格,但不清除标题

Kendo ui 清除剑道电子表格,但不清除标题,kendo-ui,Kendo Ui,基诺电子表格是新的,文档非常稀少 我试着做一些相对简单的事情 我有一个带有样式化标题的电子表格,如下所示: this.sheetsHeader = [ { name: "ProductsEntry", rows: [ { height: 15, cells: [

基诺电子表格是新的,文档非常稀少

我试着做一些相对简单的事情

我有一个带有样式化标题的电子表格,如下所示:

this.sheetsHeader = [
            {
                name: "ProductsEntry",
                rows: [
                    {
                        height: 15,
                        cells: [
                            {
                                value: "Name",
                                bold: "true",
                                background: "#00435e",
                                textAlign: "center",
                                color: "white",
                                fontSize: 14,
                            }, {
                                value: "Type",
                                bold: "true",
                                background: "#00435e",
                                textAlign: "center",
                                color: "white",
                                fontSize: 14,
                            },
                            {
                                value: "Currency",
                                bold: "true",
                                background: "#00435e",
                                textAlign: "center",
                                color: "white",
                                fontSize: 14,
                            },
                            {
                                value: "Rate",
                                bold: "true",
                                background: "#00435e",
                                textAlign: "center",
                                color: "white",
                                fontSize: 14
                            },
                            {
                                value: "StartDate",
                                bold: "true",
                                background: "#00435e",
                                textAlign: "center",
                                color: "white",
                                fontSize: 14,
                            }
                        ]
                    }
                ],
                columns: [
                    { width: 200 },
                    { width: 200 },
                    { width: 90 },
                    { width: 90 },
                    { width: 110 }
                ]
            }
        ];
这将以正常方式初始化:

    $("#spreadsheet").kendoSpreadsheet({
        toolbar: false,
        sheetsbar: false,
        sheets: that.sheetsHeader
    });
然后,我有一个清除电子表格的事件,但我想保持标题不变

如果我这样做:

var sheet = spreadsheet.activeSheet();
sheet.range(kendo.spreadsheet.SHEETREF).clear();
它会抹去页眉,使工作表完全空白

我试着用许多不同的方法重新添加标题,但没有任何效果

在清除我尝试的电子表格后:

 sheet.fromJSON(that.sheetsHeader[0].rows);
我还尝试删除工作表并重新添加:

 spreadsheet.removeSheet(0);
 spreadsheet.insertSheet(that.sheetsHeader);
到目前为止,还没有什么真正起作用,也没有关于这种场景的文档。有什么想法吗?

就是这样:

sheet.fromJSON(that.sheetsHeader[0]);
我真希望他们能提供一些文档。这不是很直观