SMART datagrid v.1 > Classes > DisplayOptions

Back  Forward

DataLudi.DisplayOptions.emptyDataMessage  property

当连接在网格的DataSet中没有行时,将会被显示在空网格的背景的字符串。 

如果指定nullundefined,就会显示默认值,并且如果指定空字符串,就不会进行显示。(ver 1.3.4) 

通过emptyGridMessage,指定没有将要显示的列时所显示的信息。 

默认值为"조회???�이?��? ?�습?�다.".

Getter
function emptyDataMessage(): String
Setter
function setEmptyDataMessage(value: String)
Code -1
    grid.setOptions({
        display: {
            emptyDataMessage: 'Abc ERP Solution v1.0'
        }
    });
Code -2
    grid.setDisplayOptions({
        emptyDataMessage: 'Abc ERP Solution v1.0'
    });
Code -3
    grid.displayOptions().setDataGridMessage('数据不存在。');
See Also
emptyGridMessage
GridBody.emptyStyles
rowCount
Examples
Hello Grid
空网格