SMART datagrid v.1 > Classes > GroupRow

Back  Forward

DataLudi.GroupRow.firstLeaf  property

当全部展开该组行时,返回子孙行中的、位于树结构的首位的行。 

可以通过lastLeaf,了解最后一个行。 而且,可以通过getLeaves,获取所包含的所有叶行。 

Getter
function firstLeaf(): GridRow
Code -1
    var row = grid.focusedRow();
    if (row instanceof GroupRow) {
        var leaf = row.firstLeaf();
        grid.setFocusedRow(leaf, true);    }
See Also
lastLeaf
first
last
getLeaves
Examples
行分组