SMART datagrid v.1 > Classes > DataColumn

Back  Forward

DataLudi.DataColumn.lookupLabels  property

If lookupDisplay is true, it will be used as data cell lookup data together with lookupValues. 

Please refer to lookupValues Help Topic about more details. And, please refer to Data Lookup Overview topic about the overall contents on lookup. 

Defaults to null.

Getter
function lookupLabels(): Array
Setter
function setLookupLabels(value: Array)
Code -1
    $('#setLookup').click(function () {
        column.setLookupDisplay(true)
              .setLookupValues([111, 222, 333])
              .setLookupLabels(['aaa', 'bbb', 'ccc']);
    });
    // In most cases, it will be set when setup grid column.
    grid.setColumns([
        {
            name: 'col1',
            lookupDisplay: true,
            lookupValues: [],
            lookupLabels: [],
            ...
        }
    ]);
See Also
Data Lookup Overview
lookupDisplay
lookupValues
labelField
Examples
Data Lookup