- var comboboxColIndex = 0;
- var columnName1 = "DisplayText";
- var columnName2 = "DisplayText";
- var columnName3 = "DisplayText";
- var columnWidth = 500;
- var spread = Forguncy.Page.getListView("表格1").getControl();
- var sheet = spread.getActiveSheet();
- sheet.bind(GC.Spread.Sheets.Events.EditorStatusChanged, function (eventType, args) {
- var col = sheet.getActiveColumnIndex();
- if (col === comboboxColIndex) {
- var row = sheet.getActiveRowIndex();
- var combobox = sheet.getCellType(row, col).getGcCombobox();
- combobox.getDropDownList().updateColumnWidth(columnName1, columnWidth);
- combobox.getDropDownList().updateColumnWidth(columnName2, columnWidth);
- combobox.getDropDownList().updateColumnWidth(columnName3, columnWidth);
- }
- });
复制代码
|