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 6806285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:41:30+00:00 2026-05-26T19:41:30+00:00

I have a simple tabpanel. I want to fetch currently active tab’s child components

  • 0

I have a simple tabpanel. I want to fetch currently active tab’s child components and destroy them and doLayout(). The following code won’t work:

Ext.getCmp('centertabpanel').getActiveTab().items.destroy();
  • 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-26T19:41:31+00:00Added an answer on May 26, 2026 at 7:41 pm

    One thing to keep in mind here is that tabs in TabPanel’s in ExtJS just need to be a BoxComponent in ExtJS 3 or a Component in ExtJS 4. This means that tabs are not required to hold children elements. However, if you know that your centertabpanel has tabs with Containers, then you have two options:

    If your tab is a container that has autoDestroy set to true (that is the default), then just use:

        Ext.getCmp('centertabpanel').getActiveTab().removeAll();
    

    If you want to set autoDestroy to false, then use the following code:

        Ext.getCmp('centertabpanel').getActiveTab().each(function(item, idx, len) {
            item.destroy();
        });
    

    .each() is defined on MixedCollection. It will execute the function in the first parameter against all of the child items, in order. As a side note, if you return false inside the function, then it will stop all iteration of elements.

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

Sidebar

Related Questions

I have simple CI (CodeIgniter) code. what I want to do is: when I
i use the MVP-Pattern in GWT. I have developed a GWT-TabPanel. Each Tab has
I have simple form set up like the following: <form> <input type=text name=first_number id=first_number
I have this simple tabBar inside a TabPanel: MyApp.views.Viewport = Ext.extend(Ext.TabPanel, { fullscreen: true,
I have the following simple view main.xhtml , the request URL would be something
I have three tabs. I want load then on demand except first tab. If
I have a simple 2 tab panel setup with 2 validation groups. My problem
I have simple regex \.*\ for me its says select everything between and ,
I have simple win service, that executes few tasks periodically. How should I pass
i have simple regular expression: ^123$ Matches are for example 123 1234 etc. 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.