1. #1
    Sencha User
    Join Date
    Jun 2011
    Location
    Ukraine, Kherson
    Posts
    30
    Answers
    1
    Vote Rating
    0
    lufton is on a distinguished road

      0  

    Default Unanswered: Context menu still shows

    Unanswered: Context menu still shows


    I want to show custom context menu in my gridpanel. On itemcontextmenu listener function I do:
    Code:
    e.preventDefault();
    e.stopEvent();
    But browser default context menu sometimes shows (ExtJS 4.2.0-4.2.1). I tested in Chrome 27. In FF it works as expected.
    JSFiddle example.

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,913
    Answers
    371
    Vote Rating
    179
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    I tried to reproduce the issue you're seeing on Chrome 27 on Win7 and Win8 with 4.2 through JSFiddle and also on 4.2.1 by just pulling the code into my own project and I never could reproduce the issue you're seeing / demonstrating in the video.

    On both of my boxes I had recently uninstalled Chrome and reinstalled due to another issue only observable in Chrome. I wonder if the fresh install is the difference? Just guessing since I wasn't able to reproduce the issue.
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

    C
    heck out all of the 2013 SenchaCon presentations here:
    http://www.sencha.com/blog/senchacon...now-available/

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Location
    Ukraine, Kherson
    Posts
    30
    Answers
    1
    Vote Rating
    0
    lufton is on a distinguished road

      0  

    Default


    Maybe it is because I have some extra context menu items added by chrome extensions? I open new Incognito window of chrome (to disable all extensions) but here I get original menu. I tried on Windows XP laptop - original menu didn't shows. So the problem is on my PC. I'll try to reinstall chrome as soon as I can and inform you. Thanks!

  4. #4
    Touch Premium Member
    Join Date
    Mar 2011
    Posts
    114
    Answers
    13
    Vote Rating
    7
    chamacs is on a distinguished road

      0  

    Default


    Are you sure you right-clicked over a selectable row? The itemcontextmenu event only triggers on selectable rows. It you want to suppress the browsers context menu in the 'white space' of the grid, use the containercontextmenu event.

  5. #5
    Sencha User
    Join Date
    Jun 2011
    Location
    Ukraine, Kherson
    Posts
    30
    Answers
    1
    Vote Rating
    0
    lufton is on a distinguished road

      0  

    Default


    Yes I am sure I right click on the row! I added containercontextmenu listener with preventing of context menu opening: now context menu still showing on right click over row and don't showing on right click over container.

  6. #6
    Touch Premium Member
    Join Date
    Mar 2011
    Posts
    114
    Answers
    13
    Vote Rating
    7
    chamacs is on a distinguished road

      0  

    Default


    Using your JSFiddle code directly, the only way I can get the browser context menu to show up is if I right-click twice in the same spot. The normal context menu shows up on the first click, but the second right-click is no longer on the row so the itemcontextmenu event won't be triggered. I don't know if there is a solution for too many right-clicks in the same location.

  7. #7
    Sencha User
    Join Date
    Sep 2012
    Posts
    6
    Vote Rating
    0
    felix822 is on a distinguished road

      0  

    Default


    Sorry, I know this thread is old, but just wondering if you found a solution.

    I'm having the same problem with context menus in Chrome and Safari.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi