Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Auto Sizing EXTJS columns.

Ranch Hand
Posts: 337
Scala Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I am new to EXT JS.

I have a grid which contains 10 to 20 columns of whose headers contain text bigger then the column width and such text end with ... and then I have to manually drag the border to right to view the entire header text.

I which to resize each column header to contain the entire text without having to drag maully and without wrapping the text to newline. I tried .x-column-header-inner{ white-space: nowrap}, .x-column-header-inner{ auto-resize:true}, .x-column-header-inner{ auto-size:true} but none of the three worked.

So Please help me achieve the same.

Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought, It would help to you.

Ext JS docs says:

Setting Sizes
The columns are laid out by a Ext.layout.container.HBox layout, so a column can either be given an explicit width value or a flex configuration. If no width is specified the grid will automatically the size the column to 100px. For column groups, the size is calculated by measuring the width of the child columns, so a width option should not be specified in that case.

She still doesn't approve of my superhero lifestyle. Or this shameless plug:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic