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

  • Home
  • SEARCH
  • 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 6105277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:57:31+00:00 2026-05-23T13:57:31+00:00

The property width is a pixel width. { xtype: ‘grid’, store: store, selModel: Ext.create(‘Ext.selection.CheckboxModel’,

  • 0

The property width is a pixel width.

{
                xtype: 'grid',
                store: store,
                selModel: Ext.create('Ext.selection.CheckboxModel', {
                    mode: 'SINGLE'
                }),
                layout: 'fit',
                columns: [
                    {
                        text: "pum",
                        dataIndex: 'SRD_NAME_FL',
                        width: 400
                    }
                ],
                columnLines: true
            }

if i have only one column how can i make column width = 100%
or if i have several columns – how to make last column stretch to end of grid?

  • 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-23T13:57:32+00:00Added an answer on May 23, 2026 at 1:57 pm

    For ExtJS3, set forceFit on the GridPanels viewConfig. See: http://dev.sencha.com/deploy/ext-3.4.0/docs/?class=Ext.grid.GridView

    For ExtJS 4 set forceFit directly on the GridPanel: http://docs.sencha.com/ext-js/4-0/#/api/-cfg-forceFit and use it in conjunction with flex on your columns.

    Example for v4

    var p = Ext.Create('Ext.grid.Panel',{
        forceFit: true,
        columns: [{
            xtype: 'gridcolumn',
            header: _ll.id,
            sortable: true,
            resizable: false,
            flex: 0, //Will not be resized
            width: 60,
            dataIndex: 'Id'
        }, {
            xtype: 'gridcolumn',
            header: __ll.num,
            sortable: true,
            resizable: true,
            flex: 1,
            width: 100,
            dataIndex: 'number'       
        }
    });
    

    Example for v3

    var p = new Ext.grid.GridPanel({
        viewConfig: {
                forceFit: true
        },
        columns: [{
            xtype: 'gridcolumn',
            header: _ll.id,
            sortable: true,
            resizable: false,
            fixed: true, //Will not be resized
            width: 60,
            dataIndex: 'Id'
        }, {
            xtype: 'gridcolumn',
            header: __ll.num,
            sortable: true,
            resizable: true,
            width: 100,
            dataIndex: 'number'       
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is the CSS 'width' property applicable to a <textarea> ? In practice, people say
I need to bind width property of the GridView column that is created dynamically
Does anyone know how to set the TextBox.Width property to fill up the remainder
What is the definitive way to mimic the CSS property min-width in Internet Explorer
1) If textbox element ( <input type=text /> ) has its width property set
I'm trying to set the width & height property of an image element i've
WebKit introduced the -webkit-device-pixel-ratio media feature and window.devicePixelRatio JavaScript property, to allow web authors
Whats does this sentence mean: The Stride property, holds the width of one row
I have a UIButton with a specified width of 200. Its autoresizingMask property is
In a UIWebView, I am using the CSS max-width property to scale images of

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.