SMART datagrid v.1 > Classes > GroupRow

Back  Forward

DataLudi.GroupRow.descendantCount  property

该组行所包含的所有子孙的数量。 

可以通过count,了解正下方的子行的数量。 而且,可以通过getDescendants,获取所有子孙行。 

Getter
function descendantCount(): Integer
Code -1
    $('#checkDescendants').click(function () {
        var group = grid.focusedGroupRow();
        if (group && group.descendantCount() > 1) {
            var rows = group.getDescendants();
            for (var i = rows.length; i--;) {
                rows[i].setChecked(true);
            }
        }
    });
See Also
getDescendants
children
count
getChild
Examples
行分组