myTree.on('click',function(node){
if(node.isLeaf())
{
Ext.Msg.alert("You are in value ",nodeValue,"whose name is",nodeName);
alert("You are in value ",nodeValue,"whose name is",nodeName);
}
});
myTree is a TreePanel. I'm getting a tree but click function is not working. I'm very new to extjs. Help me out.
Thanks in advance