SMART datagrid v.1 > Classes > GridRow

[ grids ver.1.3.8]   Back  Forward

DataLudi.GridRow.getSiblings  method

Return the list of sibling rows which have the same Parent as this row as array. 

function getSiblings (dataOnly: Boolean): [GridRow];
Returns
[GridRow]
Parameters
dataOnly - Boolean. Defaults to false.
If it is true, it will not contain rows which are not data row.
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
Row Model