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
行グルーピング