SMART datagrid v.1 > Classes > DateCellEditor

Back  Forward

DataLudi.DateCellEditor.commitOnSelect  property

In the state of selecting the date in calendar box, when close the box by clicking the mouse or typing enter key, it will commit editing and try to change the data cell value with the selected date. 

If commit the change of cell value, GridBase.onEditCommitted event will be fired. 

Defaults to true.

Getter
function commitOnSelect(): Boolean
Setter
function setCommitOnSelect(value: Boolean)
Code -1
    var columns = {
        name: "OrderDate",
        fieldName: "OrderDate",
        width: "130",
        editor: {
            type: "date",
            commitOnSelect: true,
            editFormat: "yyyy.MM.dd"
        }
    },
    ...
    ];
    grid.setColumns(columns);
See Also
isListing
GridBase.onEditCommitted
GridBase.onEditCellUpdated
Cell Editing Overview
Examples
Date Cell Editor
Cell Editing