SMART datagrid v.1 > Classes > GroupRow

Back  Forward

DataLudi.GroupRow.getDescendants  method

このグループ行のすべての子孫行たちをアレイでリターンする。 

visibleOnlytrueならcollapsedであるグループ行の子孫たちは含まれない。 

function getDescendants (visibleOnly: Boolean, dataOnly: Boolean): [GridRow];
Returns
[GridRow]
Parameters
visibleOnly - Boolean. デフォルト値はfalse.
dataOnly - Boolean. デフォルト値はfalse.
Code -1
    $('#checkGroup').click(function () {
        var row = grid.focusedRow();
        if (row instanceof DataLudi.GroupRow) {
            var rows = row.getDescendants(true);
            grid.checkRows(rows, true);
        }
    });
See Also
collapsed
descendantCount
Examples
行グルーピング