Hi all,
I posted this some hours ago, but it didn't appear on the forum, so trying again. I have a list panel with events, where e.g. the 'tap'-event works fine, but the 'activate'-event doesn't fire. I have tried many combinations, checked help, examples and forum, but i did not find anywhere a working activate listener for a list.
Below my code snippet:
Code:
var demosList = new Ext.List({
xtype: 'list',
store: oStore,
itemTpl: glaDataDef[cDataDef ]['ListRowDef'],
singleSelect: true,
listeners: {
orientationchange : function( oThis, cOrient, nWidth, nHeight) {
oThis.setHeight( nHeight );
oThis.setWidth( nWidth );
},
beforeactivate: function( oThis, oPrev ) {
alert('a');
},
activate: {
element: 'body', //bind to the underlying body property on the panel
fn: function(){ alert('act'); }
},
el: {
tap: function(){ alert('tap el'); }
},
body: {
activate: function(){ alert('act body'); }
}
}
});
demosList.addListener('activate', function( oThis ) { alert('b'); });
demosList.on('activate', function( oThis ) { alert('b'); });
oPar.add( demosList );
oPar.doLayout();
I am really not aware of what I am missing, I tried a lot of different combinations one by one, anyone maybe having a good idea on this ? Maybe it is a bug ?
Thanks a lot,
Frank