SMART datagrid v.1 > Classes > TreeView
DataLudi.TreeView.checkChildren method
变更被包含在通过参数parent而指定的树行的子行的checked状态。
如果将rowEvents指定为true,就会在每次变更个别行的Checked状态时,将会触发GridBase.onRowChecked事件。 在全部变更之后,将会触发onRowsChecked事件。
function checkChildren (parent: TreeRow, checked: Boolean, recursive: Boolean, visibleOnly: Boolean, checkableOnly: Boolean, rowEvents: Boolean);
- Returns
- Void
- Parameters
- parent - TreeRow. required.
- checked - Boolean. required.
- recursive - Boolean. required.
- visibleOnly - Boolean. 默认值为false.
- checkableOnly - Boolean. 默认值为false.
- rowEvents - Boolean. 默认值为false.
Code -1
$('#chkChildren').click(function () {
var row = tree.focusedRow();
row && tree.checkChildren(row);
});
- See Also
- GridRow.checked
- GridBase.onRowChecked
- GridBase.onRowsChecked
- TreeRow
- GroupRow.count
- GroupRow.children
- 树概述
- Examples
- Hello Tree
- 访问子元素