SMART datagrid v.1 > Classes > TreeView
DataLudi.TreeView.getRowsOfDataRows method
返回被连接在通过dataRows而指定的数据行的树行列表。
如果将all指定为true,就会同时包含因为祖辈行被折叠而没有被显示在网格的树行。
function getRowsOfDataRows (dataRows: [TreeDataRow|Integer], all: Boolean): [TreeRow];
- Returns
- [TreeRow]
- Parameters
- dataRows - [TreeDataRow|Integer]. required.
- all - Boolean. 默认值为false.
如果为true,就会包含因为祖辈行被折叠而未被显示在网格的树行。
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
- 树概述
- Examples
- Hello Tree
- 树数据组