-
16 Sep 2010 1:40 AM #1
Menu o.parentMenu error on showAt
Menu o.parentMenu error on showAt
I've got a simple row context menu on a grid panel, which should show at the specified coordinates. For some reason, the showAt function errors with "Object doesnt support this property or method" error.
Within showAt, o.parentMethod is a numeric value (one of the coordinates), however this appears to be if the menu is shown against an element. Hence o.parentMenu.getEl() on an int produces the error.
Can anyone advise? Is this a config error or a bug?
thanksCode:grid.addListener('rowcontextmenu', function(grid, rowIndex, e) { var xy = e.getXY(); e.stopEvent(); new Ext.menu.Menu({ items: [ { text: 'Menu Item', handler: function() {}, scope: this, iconCls: 'no-icon' } ] }).showAt(xy[0], xy[1]); }, this);
-
16 Sep 2010 3:07 AM #2
Sorry chaps, my mistake. I'm having one of those days. I looked at this for ages too

Code:.showAt(xy)
Similar Threads
-
How to show menu using showAt method?
By saadkhan in forum Ext 3.x: Help & DiscussionReplies: 7Last Post: 2 Dec 2009, 9:34 AM -
Menu.showAt() question
By parky128 in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 1 Dec 2009, 8:03 AM -
Why Menu.showAt does not fire "beforeshow"?
By atchijov in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 9 Sep 2009, 8:52 AM -
[CLOSED][3.??] Menu.showAt() fails to display menu
By stupidext in forum Ext 3.x: BugsReplies: 9Last Post: 14 May 2009, 2:48 AM -
Suggested slight modification to Ext.Menu.showAt()
By digeomel in forum Community DiscussionReplies: 0Last Post: 27 Jun 2007, 7:50 AM


Reply With Quote