您好,还是用ValueChanged事件,事件中添加判断即可,参考代码:
- spread.bind(GC.Spread.Sheets.Events.ValueChanged, function (s, e) {
- var row = e.row;
- var col = e.col;
- var sheet = e.sheet;
- var cellType = sheet.getCellType(row,col);
- var Combobox = GC.Spread.Sheets.CellTypes.ComboBox;
- if(cellType instanceof Combobox){
- console.log("ComboBox");
- }
- });
复制代码 |