Results 1 to 3 of 3

Thread: ContextMenu Rendering

  1. #1
    Ext User
    Join Date
    Nov 2007
    Location
    US
    Posts
    55

    Default ContextMenu Rendering

    Any body know what is problem here ?

    It display more than two context menu after successive right click

    ContextMenu.jpg



    Code:
    function event_context_menu(node, event){
    
      var contextMenu = new Ext.menu.Menu({
           id : "_context_menu",
           items:[
                      {
                      id:'add_node',text : 'Add Node' ,
                      handler: function(){  
                               alert ('I am in ');
                            }  
                 }
           ]
       });
    Take a long breathe ..

  2. #2
    Ext User
    Join Date
    Nov 2007
    Location
    US
    Posts
    55

    Default

    With single html file it works ok but not with what I have coded on web server
    Take a long breathe ..

  3. #3
    Ext User
    Join Date
    Nov 2007
    Location
    US
    Posts
    55

    Default

    if var contextMenu is defined globally it work fine.

    but I don't want to define it globally.
    Take a long breathe ..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •