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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:44:14+00:00 2026-05-25T20:44:14+00:00

I have a formpanel and a div inside it with the class ‘x-panel-body’ How

  • 0

I have a formpanel and a div inside it with the class ‘x-panel-body’

How can I select that div and alter it’s style? I’ve tried using ext.select and setStyle but it tells me that the html has no setstyle method.

Thanks

edit: to add, that is the only form on the page. It also has html id: myform

  • 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-25T20:44:15+00:00Added an answer on May 25, 2026 at 8:44 pm

    You have several possibilities:

    1. Using a CSS rule should probably be your first choice

      #myform .x-panel-body {
      background: red;
      }

    2. Apply a bodyStyle config property when creating your panel. See API docs. (Or alternatively bodyCls). Note that this is a config property that is only evaluated once during the construction phase of the panel component and cannot be used to change the style at runtime.

      In case you need to change the style programmatically after the component has been created:

    3. use setStyle but remember that this is a method of Ext.Element and not Ext.Component (or Ext.form.Panel)! You have to call it on the body member of your panel object.

      // fetch the body element of your form object which is of 
      // type Ext.Element and apply the style
      myForm.body.setStyle([property], [value]);
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a formpanel that is extended to make a class which is called
I have an issue with my jQuery code. There is a popup panel that
I have ExtJS View-Port panel , that contain center panel, that contain tablpanel ,
Inside my extjs FormPanel , I have several editor grids. I don't know what
I have a FormPanel that looks like this: var simple_form_left = new Ext.FormPanel({ frame:true,
I have a GWT-FormPanel on my website, where people can upload pictures and answer
I have a editable FormPanel that looks like this: I now want to display
I have an Ext Js panel that I am adding to my main TabPanel.
Simple, I have a GridPanel and a FormPanel. Inside the form there is a
In an Ext Js-application I am working on I have a formpanel that contains

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.