SMART datagrid v.1 > Classes > DataColumn

Back  Forward

DataLudi.DataColumn.lookupDisplay  property

如果为true,就会替代数据单元格的值,将会从lookupValueslabelField, 或通过lookupSourceId而指定的LookupSource对象,获取值并显示在单元格。 

有关Lookup的详细内容,请参考数据查找概述和相关属性的帮助主题。 

默认值为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
数据查找概述
lookupValues
lookupLabels
labelField
lookupSourceId
LookupSource
Examples
数据查找