SMART datagrid v.1 > Classes > GridRow

[ grids ver.1.3.8]   Back  Forward

DataLudi.GridRow.getSiblings  method

将与该行具有相同的父母的兄弟行的列表返回为数组。 

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