SMART datagrid v.1 > Classes > ListCellEditor

Back  Forward

DataLudi.ListCellEditor.domainOnly  property

When this value is true and there is no item selected from list, if the entered text does not belong to values item, the input will be ignored. 

Defaults to false.

Getter
function domainOnly(): Boolean
Setter
function setDomainOnly(value: Boolean)
Code -1
    var columns = [{
            name: "CustomerID",
            fieldName: "CustomerID",
            width: "120",
            editor: {
                type: "list",
                domainOnly: true,
                values: ["VN", "HN", "SP", "VC", "TR", "SV"],
                labels: ["VINET", "HANAR", "SUPRD", "VICTE", "THREE", "SEVEN"]
            }
        }, 
        ...
    ];
    grid.setColumns(column);
See Also
values
Examples
List Cell Editor