SMART datagrid v.1 > Classes > ListCellEditor

Back  Forward

DataLudi.ListCellEditor.commitOnSelect  property

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.

Getter
function commitOnSelect(): Boolean
Setter
function setCommitOnSelect(value: Boolean)
Code -1
    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);
See Also
isListing
GridBase.onEditCommit
Examples
List Cell Editor