SMART datagrid v.1 > Classes > DataColumn

Back  Forward

DataLudi.DataColumn.labelField  property

If Data Field specified by this value exists in DataSet connected to grid, and if lookupDisplay is true, the data cells of this column will display the value of this field rather than the value of field connected to cell. 

Please refer to the overall contents about lookup in Data Lookup Overview

Defaults to null.

Getter
function labelField(): String
Setter
function setLabelField(value: String)
Code -1
    var columns = [{
        name: 'colId',
        fieldName: 'project_id',
        labelField: 'project_namename',     // label field
        lookupDisplay: true                 // Must be true
        ...
    },
    ...
    ];
    grid.setColumns(columns);
See Also
Data Lookup Overview
lookupDisplay
DataSet
DataField
Examples
Data Lookup