var treePanel = new Ext.tree.Panel({ ... listeners : { itemclick : function () { alert(1) } }, ... });