SMART datagrid v.1 > Classes > ListCellEditor
When the list item is selected, if click the mouse or type enter key to close the list, it will commit editing and try to change the value of data cell as the value of selected item. GridBase.onEditCommit event will be fired.
Defaults to true.
var columns = [{
name: "CustomerID",
fieldName: "CustomerID",
width: "120",
editor: {
type: "list",
commitOnSelect: true,
values: ["VN", "HN", "SP", "VC", "TR", "SV"],
labels: ["VINET", "HANAR", "SUPRD", "VICTE", "THREE", "SEVEN"]
}
},
...
];
grid.setColumns(column);