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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:36:35+00:00 2026-06-06T00:36:35+00:00

I have main window which has inner grid components. When I press a button

  • 0

I have main window which has inner grid components. When I press a button in the window, one of the grid components gets updated with data from database. That part is working well but when I resize the window component this grid component doesn’t gets resized. It looks like it gets fixed width when setSource() is called.

Is there an extjs function that can redraw/update size of the grid component or how to preven this from happening?

I use this component Ext.grid.property.Grid from ext js 4

Here is the main container

var main_container = Ext.create('Ext.container.Container',
{
   xtype: 'container',
   id: "container_id",
   anchor: '100%',
   layout:'column',
   items:[
      column_1,
      column_2,
      column_3
   ]
})
  • 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-06T00:36:37+00:00Added an answer on June 6, 2026 at 12:36 am

    I don’t know any layout that would allow you to dynamically resize columns to fit their contents, this is a non-trivial task (imagine how would you implement it on your own).
    You can specify a fixed percentage width to every column according to your expectations on the length of data inside it, something like:

     items: [{
            title: 'Column 1',
            columnWidth: .25
        },{
            title: 'Column 2',
            columnWidth: .55
        },{
            title: 'Column 3',
            columnWidth: .20
        }],
    

    You can also give a fixed width to any column, this way the remaining space would be shared by percentage-width columns. Refer to http://docs.sencha.com/ext-js/4-0/#!/api/Ext.layout.container.Column

    Otherwise you would have to measure every cell’s width after each data update to figure out a cell with maximum width and attempt to resize column according to that width (but still make sure the total width of all columns doesn’t exceed container width).

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

Sidebar

Related Questions

I have a Main Window which has a Grid. On Button Click Events, I
I have a WPF application which has a main window composed from several custom
In my WPF application, I have a main window (Branch.xaml) which has a button
I have a window(say main window) with a frame which has a page in
I have a WPF4 application i have 1 window which editing data : main
I have the main thread from which I start a window using invokeLater .
I have an application which has a layout similar to iTunes. The main window
I have a main window which has the UITabViewController as its root controller. I
I have a main window (#1) on my webpage from which I open a
I have a parent window in which a push-button's click event function has the

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.