what I am trying to do is to get different reaction on a different tree LEAF click!
var myTree = Ext.create(\'Ext.tree.Panel\',
store: store,
rootVis
I was trying to do a generic treepanel's item click handler and to be able to get a custom field I added to the node object. This helped me out. I dunno if this is the standard and compatible ExtJs 4 way:
(Some Panels Here),
items: [{
xtype: 'treepanel',
listeners: {
itemclick: {
fn: function (view, record, item, index, e) {
console.log(record.raw.userData);
}
(removed...)