PDA

View Full Version : Strange problem with context menu item



andyts93
28 Jun 2013, 4:09 AM
Hi, I'm using a context menu in my grid and it often works fine. The problem is that sometimes it appears like this and I'm unable to click the first option:
44606
When it happens there aren't errors in the debug console. Here's my code

var dispMenuCart = new Ext.menu.Menu({ bodyPadding: 0,
items: [
{
text: 'Disponibile',
id: 'opt1'
},
{
text: 'In verifica',
id: 'opt2'
},
{
text: 'Non disponibile',
id: 'opt3'
}
],
listeners: {
click: function(menu, item, e, opts){
// some stuff
}
}
});

tvanzoelen
28 Jun 2013, 4:40 AM
What version do you use?

andyts93
30 Jun 2013, 4:36 AM
I'm using 4.1.1

andyts93
5 Jul 2013, 4:56 AM
can anybody help me please?

tvanzoelen
5 Jul 2013, 4:59 AM
Yes, first I see you use the id property. Can you change that into itemId?