SMART datagrid v.1 > Classes > GridBase
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
- In the grid view of not been grouped, this method will return all rows of grid.
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