Skip to content

Commit 5f30cac

Browse files
TreeView: update createChildren (#7151) (#7153)
1 parent 98434e9 commit 5f30cac

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

api-reference/10 UI Components/dxTreeView/1 Configuration/createChildren.md

+14
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,20 @@ The following code shows how to use this function with a remote service:
144144
href: "https://js.devexpress.com/Demos/WidgetsGallery/Demo/Tree_View/LoadDataOnDemand/"
145145
}
146146

147+
[note]
148+
149+
To reset the TreeView's state after running **createChildren**, modify or clear [items](/Documentation/ApiReference/UI_Components/dxTreeView/Configuration/items/) array:
150+
151+
const items = treeViewInstance.option("items");
152+
// Make necessary changes to items
153+
treeViewInstance.option("items", items);
154+
155+
// or
156+
157+
treeViewInstance.option("items", []);
158+
159+
[/note]
160+
147161
#####See Also#####
148162
- [Enhance Performance on Large Datasets](/concepts/05%20UI%20Components/TreeView/32%20Enhance%20Performance%20on%20Large%20Datasets.md '/Documentation/Guide/UI_Components/TreeView/Enhance_Performance_on_Large_Datasets/')
149163
- [Demo: Simple Array - Plain Structure](https://js.devexpress.com/Demos/WidgetsGallery/Demo/TreeList/SimpleArrayPlainStructure/)

0 commit comments

Comments
 (0)