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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:17:32+00:00 2026-06-11T05:17:32+00:00

I have quite annoying problem with hiding grid columns dynamically. After I hide columns

  • 0

I have quite annoying problem with hiding grid columns dynamically. After I hide columns (with long text in cells), the height of grid rows dramatically increases.
Before hide
enter image description here

and after hide operation

enter image description here

As You can see first row is definitely too high. Probably the reason of that behavior is the fact, that I use text wrap in grid cells.

.x-grid-cell-inner { white-space: normal; }

Is there any efficient way to make grid rows, not to change their height after hiding columns (and using textwrap ) ?

  • 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-11T05:17:34+00:00Added an answer on June 11, 2026 at 5:17 am

    I’ve personally encountered this strange phenomenon before. The problem is caused by Ext JS “hiding” columns by setting the width to 0px.

    My solution was to add event listeners to the grid header like this:

    // me is the grid
    me.headerCt.on({
        columnhide: me.removeWordWrapOnHide,
        columnshow: me.addWordWrapOnShow,
        scope:      me
    });
    

    Instead of using the existing x-grid-cell-inner class, make a new one like this:

    <style type="text/css">
        td.grid-cell-wordwrap > div {
            white-space: normal; /* may need !important, not sure */
        }
    </style>
    

    Then the implementation of these two functions did this:

    removeWordWrapOnHide: function(headerCt, column){
        var me = this,
            wordWrapRe = /wordwrap/;
        if(column.useWordWrap || wordWrapRe.test(column.tdCls)){
            column.tdCls = column.tdCls.replace("grid-cell-wordwrap", "");
            column.useWordWrap = true;  // Flag to check on show
            me.view.refresh();
        }
    },
    
    addWordWrapOnShow: function(headerCt, column){
        var me = this,
            wordWrapRe = /wordwrap/;
        if(column.useWordWrap && !wordWrapRe.test(column.tdCls)){
            column.tdCls = "grid-cell-wordwrap " + column.tdCls;
            me.view.refresh();
        }
    }
    

    Might not be the most efficient way, but it gets the job done.

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

Sidebar

Related Questions

I am stuck with something quite simple but really annoying: I have an xml
I have quite a problem concerning the use of relational database concepts in Delphi
My problem is quite annoying, probably something really stupid but I've been going around
I am having a quite annoying problem. I want to get the current date/time
Greetings, I have this annoying problem where my exception window in Visual Studio 2008
I have been getting this annoying error/bug in Visual Studio 2008 quite a bit
This question is quite simple but I have run into the problem a few
I have several cases where my string in strings.xml is quite long and has
I have a very annoying problem. I have a mIRC/Skype application, meaning chatroom with
I get quite an annoying problem when import image into flash (.png &.jpeg). My

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.