TreeListView.FetchSublevelChildrenOnExpand Property
Gets or sets whether the TreeListView fetches child nodes of sub-level nodes when you expand their parent node. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v19.1.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | **true** | true, to fetch child nodes of sub-level nodes when you expand their parent node; otherwise, false. |
Remarks
Tip
Topic: Expand and Collapse Nodes
The TreeListView in hierarchical binding mode fetches child nodes of sub-level nodes when you expand their parent node.
If the FetchSublevelChildrenOnExpand property is false, all the child nodes display expand buttons (even if they do not have children) after you expand their parent node. The expand button is hidden when you expand a sub-level node that does not contain child nodes:
Related API
HasChildNodesPath Property
Use the TreeListView.HasChildNodesPath property to make a node display an expand button only if this node has children:
Tip
GitHub Example: How to Control Expand Buttons when Sub-level Children are not Fetched
EnableDynamicLoading Property
The TreeListView in hierarchical binding mode creates child nodes dynamically when you expand their parent node.
Set the TreeListView.EnableDynamicLoading property to false to create all nodes at once when the tree is loading.
Note
If the TreeListView.EnableDynamicLoading is false, the TreeListView fetches child nodes of sub-level nodes despite the FetchSublevelChildrenOnExpand property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the FetchSublevelChildrenOnExpand property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.