SMART datagrid v.1 > Classes > RowGroup

Back  Forward

DataLudi.RowGroup.headerTextCallback  property

返回将会被显示在组页眉的文本的回调函数。 

function (group:GroupRow):String;

如果设置这个值,headerStatement属性就会被忽视。 

默认值为null.

Getter
function headerTextCallback(): Function
Setter
function setHeaderTextCallback(value: Function)
Code -1
    grid.rowGroup().setHeaderTextCallback(function (group) {
        var fld = group.groupField();
        var row = group.firstLeaf();
        var v = row ? row.getData(fld) : undefined;
        return dsMain.getFieldName(fld) + ': ' + v + ' - ' + group.descendantCount() + ' rows.';
    });
See Also
headerStatement
声明概述
Examples
行分组