I have a tree panel. My goal is to get the node text on mouse click. I am using the following code:
1. When I click on any node, it gives me the id of the previously selected node. I am not getting the name of the current clicked node, as I am invoking the code through listener on click event. I think at the point when I click on a node the previously clicked node still remains selected and before the selection changes to the newly clicked node, it takes the ID of the previous node and gives it to me. Any suggestions or way out would be a great help. Thank you.