View Full Version : Ext.tree.Panel - Simple event example

11 May 2014, 10:17 PM
Hi guys, I'm new to sencha EXT JS and having a trouble to create a click event on my Ext.tree.Panel. I have used EXT JS 4 CMD ( 4.2.1 ) to generate a default app and changed the default view/Main.js file to include a following code: http://pastebin.com/PGT7dwmC At this stage what I'm trying to achieve is to create a simple click event when leaf item is clicked the message "Clicked" will pop up. The app compiles and opens correctly in web browser. However, no matter what I do I cannot see any message on the console log or message pop-up when I click on the tree.pannel leaf item. I have already spend days on this and any hints would be highly appreciated. thank you

11 May 2014, 11:13 PM
Wrap itemclick in listeners:{} and it should work.