Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3757490
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:00:51+00:00 2026-05-19T10:00:51+00:00

HI, I have a ExtJS parent ‘container’ type, whereas i need to add a

  • 0

HI,
I have a ExtJS parent ‘container’ type, whereas i need to add a ‘contextmenu’ listener to any element that is added to this parent container, via Drag/Drop.
Can someone guide me as to the best way to do this?

I have tried this below but can’t get the function to fire.

myContainer.on('added', function(obj1,obj2,index){
   alert('added');
});

this may not be the ‘best practice’ to do it this way anyway…?
thanks for the help !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T10:00:52+00:00Added an answer on May 19, 2026 at 10:00 am

    You’re using the wrong event… The added event gets fired when (using your example) myContainer is added to some other container. What you’ll need is the add event that fires, when an item is added to myContainer:

    myContainer.on('add', function(container, component, index) {
        component.on('contextmenu', function() {
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have ExtJS View-Port panel , that contain center panel, that contain tablpanel ,
I have an ExtJS grid that has a button set up in it. The
I have an ExtJS xtemplate that is throwing errors because of the way a
I have an ExtJS grid on a web page and I'd like to save
ExtJS has Ext.each() function, but is there a map() also hidden somewhere? I have
I have a web application that uses Ext-JS 2.2. In a certain component, we
Have you ever seen any of there error messages? -- SQL Server 2000 Could
Have you guys had any experiences (positive or negative) by placing your source code/solution
I am using a star rating plugin with ExtJS that is working well, but
For example if I have extjs ComboBox, and I have URL like http://localhost:8080?param=value1,value2,value3 How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.