SMART datagrid v.1 > Classes > TreeView
DataLudi.TreeView.getRowsOfDataRows method
It returns Tree Row list which has been connected to data rows specified by dataRows.
If specify all as true, it will also contain tree rows which have not been displayed in grid due to ancestor row being collapsed.
function getRowsOfDataRows (dataRows: [TreeDataRow|Integer], all: Boolean): [TreeRow];
- Returns
- [TreeRow]
- Parameters
- dataRows - [TreeDataRow|Integer]. required.
The array of data row object or data row
rowId.
- all - Boolean. Defaults to false.
If it is true, it will also contain tree rows which are not displayed in grid since ancestor row has been collapsed.
Code -1
ds.onRowsAdded = function (ds, parent, rows) {
tree.checkAll(false);
rows = tree.getRowsOfDataRows(rows);
tree.checkRows(rows, true);
};
- See Also
- getRowOfDataRow
- getCheckedDataRows
- getSelectedDataRows
- TreeRow
- TreeDataRow
- focusedRow
- getRowOfDataIndex
- Tree Overview
- Examples
- Hello Tree
- Tree Data Set