When I click on + sign on selected node, it will expand and will display child nodes. After expanding it shows - minus sign on selected node. When I click on - sign, it should collapse and should show + sign over there. It is working fine if selected node has child nodes and not working if selected node doesn't have child node.
My requirement is that when we collapse node which doesn't have child node then it should collapse and should show + sign over there.