SMART datagrid v.1 > Classes > GridRow

[ grids ver.1.3.8]   Back  Forward

DataLudi.GridRow.getUncles  method

将该行的父母行的兄弟行列表返回为数组。 

可以通过getSiblings,获取兄弟行的列表。 

function getUncles (dataOnly: Boolean): [GridRow];
Returns
[GridRow]
Parameters
dataOnly - Boolean. 默认值为false.
如果为true,就不会包含非数据行的行。
Code -1
    $('#checkUncles').click(function () {
        var row = grid.focusedRow();
        if (row) {
            var rows = row.getUncles(true);
            grid.checkAll(false);
            grid.checkRows(rows, true);
        }
    });
See Also
getSiblings
getAncestors
parent
Examples
行模型