PDA

View Full Version : Unable to do Event handling for sub menus



jlimaye
20 Mar 2012, 5:06 AM
Hi,
I'm having my multi-level menu like below. Im receiving the data from server and adding it to the items of my Menu.


var filterData = [
{
text: 'Defined Searches',
menu: {
items: [{
text: 'By Status',
menu :{
items : [{
text: 'All Changes'
},{
text: 'All Cancelled Changes'
},{
text: 'All Closed Changes'
},{
text: 'All Open Changes'
}]
}
}]
}
},{
text: 'User Searches'
}
];

var filterMenu = Ext.create('Ext.menu.Menu', {
id: 'mainMenu',
floating: false,
items: [filterData]
});


Im not able to access the menuitem on my leaf level. How can I do that??

mitchellsimoens
20 Mar 2012, 9:32 AM
How are you trying to add an event?