Hi friends,
i am using treepanel with xml..
when the user clicks on any node of the tree, i want to know at what level he clicked...

i mean ..i want to call method1 when the user clicks on the parent,
i want to call method2 when the user clicks on the child node and
i want to call method3 when the user clicks on the grandchild node.... (all these methods are used to get some other data based on the nodeID and node level, and bind it to the gridpanel)

i searched ext.net exaples but no use...

is there any way to achieve this? do i need to add additional data to the treenode?