var dataSource = [
//...
];
$("#Spreadsheet").ejSpreadsheet({
//...
loadComplete: function (args) {
//var xlObj = $("#container").data("ejSpreadsheet");
var xlObj = this, settings;
xlObj.clearRangeData("A7:P15", "", null, true);
settings = { dataSource: dataSource, showHeader: false, startCell: "A4" };
// To update range of cells with the specified settings
xlObj.updateRange(1, settings); // 1 => Sheet Index
}
});
|