• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Auto Sizing EXTJS columns.

 
Ranch Hand
Posts: 338
Scala Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

Regards,
-Pankaj.
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic