1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    3
    Vote Rating
    0
    boblite is on a distinguished road

      0  

    Default 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?

    Code:
        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);
    thanks

  2. #2
    Ext User
    Join Date
    Aug 2010
    Posts
    3
    Vote Rating
    0
    boblite is on a distinguished road

      0  

    Default


    Sorry chaps, my mistake. I'm having one of those days. I looked at this for ages too

    Code:
    .showAt(xy)

Similar Threads

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