SMART datagrid v.1 > Classes > ListCellEditor
You can specify the display location of list box by DropDownPosition constant. If the value is EDITOR, it will adjust the left border of list box to the left side of editor. Else, it will adjust the right border of list box to the right side of editor. In both cases, you can adjust the list box to ensure it will not exceed grid or screen.
Defaults to DropDownPosition.BUTTON.
var columns = [{
name: "CustomerID",
fieldName: "CustomerID",
width: "120",
editor: {
type: "list",
dropDownPosition: DataLudi.DropDownPosition.BUTTON,
domainOnly: true,
values: ["VN", "HN", "SP", "VC", "TR", "SV"],
labels: ["VINET", "HANAR", "SUPRD", "VICTE", "THREE", "SEVEN"]
}
},
...
];
grid.setColumns(column);