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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:22:52+00:00 2026-05-27T06:22:52+00:00

I am trying to render a panel in extJS 3.4.0. It works well in

  • 0

I am trying to render a panel in extJS 3.4.0. It works well in Firefox but gives the following error when I try it in Chrome:

Uncaught TypeError: Cannot call method ‘applyStyles’ of null
Ext.Panel.Ext.extend.createElementext-all-debug.js:17057
Ext.Panel.Ext.extend.onRenderext-all-debug.js:17127
Ext.FormPanel.Ext.extend.onRenderext-all-debug.js:43353
Ext.extend.renderext-all-debug.js:10763
Ext.layout.ContainerLayout.Ext.extend.renderItemext-all-debug.js:13191
Ext.layout.AccordionLayout.Ext.extend.renderItemext-all-debug.js:14823
Ext.layout.ContainerLayout.Ext.extend.renderAllext-all-debug.js:13182
Ext.layout.ContainerLayout.Ext.extend.onLayoutext-all-debug.js:13168
Ext.layout.FitLayout.Ext.extend.onLayoutext-all-debug.js:13383
Ext.layout.ContainerLayout.Ext.extend.layoutext-all-debug.js:13162
Ext.layout.ContainerLayout.Ext.extend.runLayoutext-all-debug.js:13271
Ext.layout.ContainerLayout.Ext.extend.onResizeext-all-debug.js:13265
EXTUTIL.Event.fireext-all-debug.js:310
EXTUTIL.Observable.fireEventext-all-debug.js:54
Ext.Panel.Ext.extend.onBodyResizeext-all-debug.js:17670
Ext.Panel.Ext.extend.onResizeext-all-debug.js:17661
Ext.BoxComponent.Ext.extend.setSizeext-all-debug.js:12164
Ext.layout.FitLayout.Ext.extend.setItemSizeext-all-debug.js:13392
Ext.layout.FitLayout.Ext.extend.onLayoutext-all-debug.js:13385
Ext.layout.ContainerLayout.Ext.extend.layoutext-all-debug.js:13162
Ext.layout.CardLayout.Ext.extend.setActiveItemext-all-debug.js:13440
Ext.Container.Ext.extend.afterRenderext-all-debug.js:12738
Ext.Panel.Ext.extend.afterRenderext-all-debug.js:17414
Ext.extend.renderext-all-debug.js:10802
Ext.layout.BorderLayout.Ext.extend.onLayoutext-all-debug.js:13768
Ext.layout.ContainerLayout.Ext.extend.layoutext-all-debug.js:13162
Ext.Container.Ext.extend.doLayoutext-all-debug.js:12969
Ext.Container.Ext.extend.afterRenderext-all-debug.js:12743
Ext.extend.renderext-all-debug.js:10802
Ext.Componentext-all-debug.js:10641
Ext.apply.extend.sbext-base-debug.js:246
Ext.apply.extend.sbext-base-debug.js:246
Ext.apply.extend.sbext-base-debug.js:246 (anonymous
function)Ydee.js:27 EXTUTIL.Event.nameext-all-debug.js:190
callext-all-debug.js:1459

The code that I have used is:

var userDlg = new myDialog();

    var contentPanel = {
        id: 'content-panel',
        region: 'center',
        layout: 'card',
        margins: '2 5 5 0',
        activeItem: 0,
        border: false,
        items: userDlg
    };


    var viewport = new Ext.Viewport({
        layout: 'border',
        title: 'Ext Layout Browser',
        items: [contentPanel],
        renderTo: Ext.getBody()
    });

Can anyone point out the error?

Thanks in advance.

  • 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-27T06:22:53+00:00Added an answer on May 27, 2026 at 6:22 am

    The problem was because I was rendering FormPanel inside Viewport instead of Panel.

    Accordion layout wasn’t functioning in FormPanel. When I changed it to Panel, it started working.

    I am not sure why firefox wasn’t complaining though.

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

Sidebar

Related Questions

I was trying to render a simple piechart using ExtJs 3.0 but could not.
I've been trying to get Java monkey engine-3 to render to a canvas/panel object
I'm trying render data in my Jqgrid, but it is just not showing up.
I'm trying to render a font using sifr to about 160px in size, but
I'm trying to make data grid with paging using ExtJs framework, but unfortunately my
Im trying to render a django template from a database outside of djangos normal
I am trying to render a user control into a string. The application is
I am trying to render a model in Direct3D using DrawIndexedPrimitives . However, I
I'm trying to render a bit of text using Core Graphics APIs and I'm
I'm trying to render a colored cube after rendering other cubes that have textures.

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.