Category / Section
How to get child nodes for particular parent in TreeView?
1 min read
This article explains how to get child nodes for a particular parent in TreeView. To get all the loaded child nodes with nested child, use the following code snippet.
[TS]
var childNodes = parentElement.querySelectorAll("li.e-list-item")
To get loaded child nodes for particular parents with specific levels, use the following code snippet.
[TS]
var childNodes = parentElement.querySelectorAll("li.e-list-item.e-level-2");
Refer to the working sample for additional details and implementation: Sample