SMART datagrid v.1 > Classes > DataColumn

Back  Forward

DataLudi.DataColumn.lookupDisplay  property

If it is true, it will get the value from lookupValues or labelField, or LookupSource object specified by lookupSourceId and display in cell. 

Please refer to Data Lookup Overview and help topic of related properties about more details on Lookup. 

Defaults to false.

Getter
function lookupDisplay(): Boolean
Setter
function setLookupDisplay(value: Boolean)
Code -1
    var cols = [{
        name: "League",
        fieldName: "league",
        lookupDisplay: true,
        lookupValues: ["al", "nl"],
        lookupLabels: ["American", "National"],
        width: 70,
        styles: {
        },
        header: {
            text: "League"
        }
    }, {
        ....
    }]
    grid.setColumns(cols);
Note
See Also
Data Lookup Overview
lookupValues
lookupLabels
labelField
lookupSourceId
LookupSource
Examples
Lookup Data