PDA

View Full Version : None of the events are firing



suraj.breezy
28 Nov 2011, 5:30 AM
Hello All,

I am using Senchatouch 2. I have created a sample App which has a panel and few items in it. I am able to view these components, however none of the events are getting triggered. I am not able to traverse through the "NestedList" even. There are no "Error". What could be wrong? Please help me.

Here is the code snippet which i am using


container=Ext.create('Ext.Panel',{
fullscreen: true,
layout: {
type: 'hbox',
align: 'stretch'
},
defaults: {
flex: 1
},
dockedItems:[{
xtype: 'toolbar',
title: '',
docked: 'top',
items: [{
xtype: 'button',
id: 'btn_NewRun',
text: 'New Run',
handler: function(){
newRunForm.show();
}
},
{
xtype: 'button',
text: 'New Map',
id: 'btn_NewMap',
handler: NewMapHandle
},
{
xtype: 'button',
text: 'Test',
id:'btn_Test',
listeners:
{
onclick: function(btn){
alert('hi');
}
}
}]
}],
items: [{
xtype: 'nestedlist',
id: 'visfolderlist',
title: 'Folders',
displayField: 'text',
store: window.visManagerFactory.folderStore,
flex:1
},
{
xtype: 'tabpanel',
id: 'imagepanel',
flex:4,
items:[{
xtype: 'panel',
title: 'Map One',
html: '<div id="svgparent"></div>'
}]
}]
});

mitchellsimoens
28 Nov 2011, 8:10 AM
Always wrap your code in BBCode code tags (either by typing it or using the toolbar item)... I have edited your post so that I can read your code
What events are firing? The onclick event? If so, There is no onclick event at all so I wouldn't expect it to fire.

rdougan
28 Nov 2011, 11:15 AM
Instead of using 'on click', use 'tap'.