sheets.mergedCells Array

A range of cells that will be merged into one. The value of the first cell in the range will be displayed in the new merged cell.

<script>
  var workbook = new kendo.ooxml.Workbook({
    sheets: [{
      mergedCells: ["A1:D1"],
      rows: [
        { cells: [ { value: "Document Title" }  ] },
        { cells: [ { value: 22 }, { value: 33 }, { value: 44 }, {value: 55}  ] }
      ]
    }]
  });

  kendo.saveAs({
    dataURI: workbook.toDataURL(),
    fileName: "Test.xlsx"
  });
</script>
In this article
Not finding the help you need? Improve this article