I am using hierarchical data to populate tree view. Clicking the triangle icon of the root node would expand/collapse child nodes. I want this behavior: When I click anywhere on the root node, it should expand/collapse the child nodes. It should toggle between expand/collapse.
How can i achieve this? Thanks in advance.