I want a tree structure like below:`
-parent1
 +child 1
 +child 2
 -child 3
  +sub child 1
+parent2
+parent3`
...
 and when a user click on lets say "child1" then items related to them will be filtered.
How can I achieve this?Can any one please help me?