SMART datagrid v.1 > Classes > ListCellEditor

Back  Forward

DataLudi.ListCellEditor.dropDownPosition  property

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.

Getter
function dropDownPosition(): DropDownPosition
Setter
function setDropDownPosition(value: DropDownPosition)
Code -1
    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);
See Also
DropDownPosition
dropDownCount
dropDownWidth
Examples
List Cell Editor