SMART datagrid v.1 > Classes

Back  Forward

DataLudi.DateCellEditor  class

It is the cell editor which receives date and time input. 

Base Classes
TextCellEditor > CellEditor > EventAware > DLBase
Constructor
function DateCellEditor (grid: GridBase, parentElement: HTMLElement);
Properties
commitOnSelect
dropDownPosition
hasTime
holidays
isListing
listing
maxDate
minDate
showToday
textReadOnly
yearNavigation
Inherited Properties
CellEditor.booleanFormat
CellEditor.datetimeFormat
CellEditor.emptyValue
CellEditor.fontName
CellEditor.fontSize
CellEditor.keyCallback
TextCellEditor.maxLength
TextCellEditor.minLength
TextCellEditor.noHangul
TextCellEditor.text
CellEditor.textCase
Inherited Methods
EventAware.addListener
DLBase.assign
CellEditor.ctor
TextCellEditor.ctor
DLBase.getProperties
DLBase.getProperty
EventAware.removeListener
DLBase.setProperties
DLBase.setProperty
DLBase.toggle

 

Code -1
    var columns = {
        name: "OrderDate",
        fieldName: "OrderDate",
        width: "130",
        editor: {
            type: "date",
            editFormat: "yyyy.MM.dd",
            dropDownPosition: "editor",
            yearNavigation: true,
            showToday: true
        }
    },
    ...
    ];
    grid.setColumns(columns);
See Also
NumberCellEditor
Cell Editing Overview
Examples
Date Cell Editor
Cell Editing