SMART datagrid v.1 > Classes > DateCellEditor

Back  Forward

DataLudi.DateCellEditor.dropDownPosition  property

You can specify the display location of calendar box by DropDownPosition constant. If the value is EDITOR, it will adjust the left border of calendar box to the left side of editor. Else, it will adjust the right border of calendar box to the right side of editor. In both cases, you can adjust the calendar 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: "OrderDate",
        fieldName: "OrderDate",
        width: "130",
        editor: {
            type: "date",
            editFormat: "yyyy.MM.dd",
            dropDownPosition: "editor"
        }
    },
    ...
    ];
    grid.setColumns(columns);
See Also
DropDownPosition
Cell Editing Overview
Examples
Date Cell Editor
Cell Editing