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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:39:42+00:00 2026-06-12T10:39:42+00:00

I am trying to clone a <thead> element in Ext JS and append it

  • 0

I am trying to clone a <thead> element in Ext JS and append it to another location in the DOM.

I have this fiddle set up as an example:

http://jsfiddle.net/DUnWy/3/

Being new to the framework i am struggling a bit with the basics and cannot see why this code is not functioning for me.

  • 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-12T10:39:44+00:00Added an answer on June 12, 2026 at 10:39 am

    The Ext.select method returns an instance of an Ext.CompositeElement, which follows the Composite Pattern, meaning that it is an object that encapsulates multiple elements of the same type. To access the first table header DOM element from an Ext.select you’d have to do something like:

    Ext.select('.data-grid thead').first().dom
    

    I’m not exactly sure why the Ext.DomHelper.append isn’t working, but the following code works:

    Ext.onReady(function() {
    
        var hdr = Ext.select('.data-grid thead').first().dom,
            cntr = Ext.select('.clone table').first().dom,
            clone = Ext.clone(hdr);
    
        cntr.appendChild(clone);
    
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the code below I am trying to clone a git repository to another
I'm getting this strange error message when trying to clone or pull from git.
I have been spending the last hours trying to figure this out and now
Currently I am trying to clone this git repo: https://github.com/twilio/OpenVBX into my main repo,
I am trying to display information from database. I have set $config['per_page'] to 2,
I'm trying to clone my personal fork on github using the git+ssh protocol with
I am trying to clone my project on google code svn into a local
// I am trying to make a clone of String's replace function // and
I am trying to LD_PRELOAD the linux's clone function. In my LD_PRELOADed version I
I'm trying to use git on windows to clone a remote repository. I can

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.