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

  • SEARCH
  • Home
  • 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 8626065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:56:04+00:00 2026-06-12T07:56:04+00:00

I am using Extjs 4.1 as part of my project. So every Extjs component

  • 0

I am using Extjs 4.1 as part of my project. So every Extjs component in view.js , I could call it using Ext.getCmp and use it anywhere in my code.

My problem is with Menu Check Items.. I couldn’t find a way to call each item and check for selection in anywhere but view.js !! I need those items to be checked in another part of my project but I have no idea how to do that !

My handler:

myHandler: function (menucheckitem, checked, opts) {
    switch (menucheckitem.getId ()) {
        // Here handles the first
        case 'first':
            if (checked) {
                console.log ('First checked!');
                goToFunction ();
            }
            break;
        // Here handles the second
        case 'second':
            if (checked) {
                console.log ('Second checked!');
                goToFunction ();
            }
            break;
        default:
            console.log ('Whatever!');
    }
}

As you see above, if I want to send each menucheckitem to another js file and check for selection.. How I can do that ?

  • 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-06-12T07:56:06+00:00Added an answer on June 12, 2026 at 7:56 am

    Using Ext.getCmp is not considered a best practice. You can use ComponentQuery class to target your desired component. See other SO questions about getCmp.

    up() and down() versus Ext.getCmp()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do you implement a multiselect combobox as part of a Ext.FormPanel using ExtJs?
I'm using ExtJS to create a formPanel: new Ext.FormPanel({ labelAlign: 'top', title: 'Loading Contact...',
I have an MVC app in Extjs 4 which has a View (extending Ext.panel.Panel
Using ExtJS 4.0.2 , I can type the following into the console: Ext.util.Format.date('2012-01-13', m-d-Y);
// Using extjs 3.x var box = new Ext.Textfield { /* textField configuration */
I'm using ExtJS 4.0.7, am new to Ext, and am using the new MVC
We are using ExtJS for a webapplication. In that application, we use the standard
I've been using EXTJS 4 and loading my stores through an AJAX call to
I'm new in using Extjs Library , I want to use GridPanel but I
I am using ExtJs with XTemplate and I need to use the tag <if>

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.