SMART datagrid v.1 > Classes > GridBase

[ grids ver.1.3.8]   Back  Forward

DataLudi.GridBase.getLeafRows  method

Return the bottom terminal Rows being displayed in grid as array. 

You can get the top rows through getTopRows

function getLeafRows (visibleOnly: Boolean, dataOnly: Boolean): [GridRow];
Returns
[GridRow]
Parameters
visibleOnly - Boolean. Defaults to false.
If it is true, it will not contain descendant rows of group row which has not been expanded.
dataOnly - Boolean. Defaults to false.
If it is true, it will not contain rows which are not data row.
Note
Code -1
    $('#checkLeafRows').click(function () {
        var rows = grid.getLeafRows(false, true);
        grid.checkAll(false);
        grid.checkRows(rows);
    });
See Also
getTopRows
GridRow
GroupRow
Examples
Row Model