TypeError: Cannot read property '0' of undefined
at t.spreadsheetFeatures.cellType._renderControls (ej.web.all.min.js:10)
at t.spreadsheetFeatures.cellType._rangeCellTypes (ej.web.all.min.js:10)
at t.spreadsheetFeatures.cellType.addCellTypes (ej.web.all.min.js:10)
Html:
Code:
var customList = [{ id: "1", text: "OPTION1" }, { id: "2", text: "OPTION2" }, { id: "3", text: "OPTION3" }, { id: "4", text: "OPTION4" }];
var excelObj = $("#Spreadsheet").data("ejSpreadsheet");
// To add the dropdownlist with custom datasource in Spreadsheet.
excelObj.XLCellType.addCellTypes("E1", { 'type': ej.Spreadsheet.CustomCellType.DropDownList, 'dataSource': customList, 'field': "text" });
Syncfusion versions:
http://cdn.syncfusion.com/14.3.0.49/js/web/ej.web.all.min.js
http://cdn.syncfusion.com/14.3.0.49/js/common/ej.widget.angular.min.js