Articles in this section
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


Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied