Spread.Sheets Documentation
editable Method
Whether the combo box is editable.
Gets or sets whether the combo box is editable.
Syntax
var instance = new GC.Spread.Sheets.CellTypes.ComboBox();
var returnValue; // Type: any
returnValue = instance.editable(value);
function editable( 
   value : boolean
) : any;

Parameters

value
Whether the combo box is editable.

Return Value

If no value is set, returns whether the combo box is editable; otherwise, returns the combo box cellType.
Example
This example sets the editable method.
var items2 = ["a", "ab", "abc", "apple", "boy", "cat", "dog"];
var eComboBoxCellType = new GC.Spread.Sheets.CellTypes.ComboBox().items(items2).editable(true);
activeSheet.getCell(1, 3).cellType(eComboBoxCellType);
activeSheet.setColumnWidth(0,120);
activeSheet.setColumnWidth(2,120);
See Also

Reference

ComboBox class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.