PDA

View Full Version : TreePanel-expanding only on icons



dobberph
5 Dec 2012, 5:24 AM
Hello,

I have a TreePanel and want, that expanding and collapsing only works, if the user clicks on the plus- and minus-icons in the tree. This is because I want another action, if the user clicks on the nodes.
Is there any possibilty to do this?

Best regards,
Tobias

mitchellsimoens
7 Dec 2012, 8:03 AM
You can override the onItemDblClick or onItemClick methods of the tree view.

dobberph
7 Dec 2012, 8:12 AM
itemdblclick is overwritten already.
now i tried to overwrite itemclick with an empty function.

The result is the same.