SMART datagrid v.1 > Classes > DateCellEditor
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.
var columns = {
name: "OrderDate",
fieldName: "OrderDate",
width: "130",
editor: {
type: "date",
commitOnSelect: true,
editFormat: "yyyy.MM.dd"
}
},
...
];
grid.setColumns(columns);