SMART datagrid v.1 > Classes > ListCellEditor
The maximum number of items which will be displayed in list box. If the number of items is greater than this value, the scroll bar will be displayed. You can specify the display width of list box by dropDownWidth.
Defaults to 8.
var columns = [{
name: "CustomerID",
fieldName: "CustomerID",
width: "120",
editor: {
type: "list",
dropDownCount: 4,
values: ["VN", "HN", "SP", "VC", "TR", "SV"],
labels: ["VINET", "HANAR", "SUPRD", "VICTE", "THREE", "SEVEN"]
}
},
...
];
grid.setColumns(column);