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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:57:49+00:00 2026-06-13T05:57:49+00:00

I am trying to display a grid (object Ext.grid.GridPanel of EXTJS 4.1) in a

  • 0

I am trying to display a grid (object Ext.grid.GridPanel of EXTJS 4.1) in a tabPanel (object Ext.tab.Panel) but I have problems : the grid works perfectly as an independant source code, and the panel works also as an independant source code.
But when I try to make the grid and the panel working together, it doesn’t work.

Grid :

 var monGridPanelDetailEcriture = new Ext.grid.GridPanel({
    id: 'monGridPanelDetailEcriture',
    frame: true,
    width: 1100,
    autoHeight: true,
    renderTo: 'gridDetailEcriture',
    store: monStoreDetailEcriture,
    columns: mesColonnesDetailEcriture
});

TabPanel :

var tabs = Ext.create('Ext.tab.Panel', {
    renderTo: document.body,
    width: 450,
    activeTab: 0,     // first tab initially active
    defaults :{
        bodyPadding: 10
    },
    items: [{
        title: 'Short Text',
        closable: true
    },{
        title: 'Long Text'
    }]
});

I search on internet for a solution but each time what I found didn’t work :
I tried this solution which was explained on several forums :

var tabs = Ext.create('Ext.tab.Panel', {
    renderTo: document.body,
    width: 450,
    activeTab: 0,     // first tab initially active
    defaults :{
        bodyPadding: 10
    },
    items: [{
        monGridPanelDetailEcriture 
    },{
        title: 'Long Text'
    }]
});

But I have a Javascript error indicating this is not a way to describe items.

I also tried to create a new type of widget on the Grid (with the property “alias”) but it didn’t work.

Do someone have a solution ?

  • 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-13T05:57:50+00:00Added an answer on June 13, 2026 at 5:57 am

    Your second attempt is almost there but monGridPanelDetailEcriture is already an object do you don’t need to wrap it in {}.

    Therefore the following should work:

    var tabs = Ext.create('Ext.tab.Panel', {
        renderTo: document.body,
        width: 450,
        activeTab: 0,     // first tab initially active
        defaults :{
            bodyPadding: 10
        },
        items: [
            monGridPanelDetailEcriture
        ]
    });
    

    EDIT: You probably also don’t want the renderTo on your grid, as that will be rendering within you tab panel.
    EDIT-EDIT: Also, I think it’s perhaps better practice to use Ext.getBody() in your renderTo, rather then document.body. Seems a bit more Ext’y

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

Sidebar

Related Questions

I am trying to display data in an ExtJS grid. I have it mostly
I am trying to display a grid on my view in MVC. I have
I am trying to display a grid of documents (saved in the documents directory)
trying to display data only after variables have been set. $(document).ready(function () { function
I'm trying to display a list of Notes. I have an ItemsControl which is
I'm using a WinForms property grid to display the properties of an object. However,
I am trying display values in a datagrid in my application. I have all
I am trying to display images in a grid view within a fragment, and
I have a SLXNA game and am trying to display a menu on the
I'm trying to get a DataGrid to display the contents of an object[][] .

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.