|
excelObj.XLCellType.addCellTypes("A"+counter, { 'type': ej.Spreadsheet.CustomCellType.DropDownList, 'dataSource': itemList, 'field': { id: "itemId", text: "text" }, selectedIndex: 0}); |
|
function cellSave(args) {
var drpDownId = this.getCell(args.cellIndex.rowIndex, args.cellIndex.colIndex)[0].querySelector("input").id; // get dropdownlist id
var DropDownListObj = $("#" + drpDownId).data("ejDropDownList"); // get dropdownlist instance
var itemId = DropDownListObj.getSelectedItemsID()[0]; // to get the selected item text
console.log(itemId)
} |
what are the feature support in latest version
Hi gofeatureus,
We suspect that you need of cell template support in EJ2 Spreadsheet. For more details, please refer the below links.
Demo Link: https://ej2.syncfusion.com/demos/#/bootstrap5/spreadsheet/cell-template.html
Documentation Link: https://ej2.syncfusion.com/documentation/spreadsheet/template/
Could you please check the above links and get back to us, if you need any further assistance on this.
Regards,
Sangeetha M