1. #1
    Ext User
    Join Date
    Apr 2007
    Posts
    379
    Vote Rating
    0
    sfwalter is on a distinguished road

      0  

    Default Context menu on grid causes browser's context menu to show

    Context menu on grid causes browser's context menu to show


    Hi,

    I have a coded a menu to be displayed when a user right-clicks on a row within the grid. However both my custom context menu and the browser's (firefox) context menu shows. Is there something simple I am missing to prevent firefox's context menu to show.

    Here is the code I use to handle the right click:

    Code:
    		pagesGrid = new Ext.grid.EditorGrid(
    			'pages-grid', 
    			{	autoSizeColumns: false,
    				ds: dsPages, 
    				cm: colModel, 
    				selModel: new Ext.grid.RowSelectionModel(),
    				listeners:  {
    					'rowcontextmenu' : function(grid, rowIndex, e){
    						var coords = e.getXY();
              	mainContextMenu.showAt([coords[0], coords[1]]);
            	}
    				}				
    			}
    		);

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    e.stopEvent(), maybe also e.preventDefault()

  3. #3
    Ext User
    Join Date
    Apr 2007
    Posts
    379
    Vote Rating
    0
    sfwalter is on a distinguished road

      0  

    Default


    thanks, both worked.

    scott.

Thread Participants: 1

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