SMART datagrid v.1 > Classes > ListCellEditor
The hint value which determines the width of list box. If the value is less than 0, it will adjust to the width of data cell of being edited. If it is 0, it will directly use the width of list box which has been calculated. If it is greater than 0, it will use this property value as the width of list box. In any case, you should show all items which are being displayed if possible.
Defaults to -1.
var columns = [{
name: "CustomerID",
fieldName: "CustomerID",
width: "120",
editor: {
type: "list",
dropDownWidth: 0,
domainOnly: true,
values: ["VN", "HN", "SP", "VC", "TR", "SV"],
labels: ["VINET", "HANAR", "SUPRD", "VICTE", "THREE", "SEVEN"]
}
},
...
];
grid.setColumns(column);