SMART datagrid v.1 > Classes > ListCellEditor
Specify the items which will be displayed in list box. If close the list by clicking the mouse or typing enter key in the state of selecting list item, the value of the selected location among the items will be transferred to data cell.
If specify the text items as much as the number of items which have been specified in this property, the items of labels instead of the ones of this property will be displayed in the list. In any case, the value which is actually transferred to data cell is one of the values of values.
Defaults to null.
var columns = [{
name: "CustomerID",
fieldName: "CustomerID",
width: "120",
editor: {
type: "list",
values: ["VN", "HN", "SP", "VC", "TR", "SV"],
labels: ["VINET", "HANAR", "SUPRD", "VICTE", "THREE", "SEVEN"]
}
},
...
];
grid.setColumns(column);