Articles in this section
Category / Section

How to get child nodes for particular parent in TreeView?

1 min read

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 particular levels, use the following code snippet.

 

[TS] 

 

var childNodes = parentElement.querySelectorAll("li.e-list-item.e-level-2");

 

Sample link: https://stackblitz.com/edit/a9rtyv-a3rr2c?file=index.html

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