Results 1 to 6 of 6

Thread: Ext.grid.Column -> missing config headerCls

  1. #1
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,747
    Vote Rating
    129
      0  

    Default Ext.grid.Column -> missing config headerCls

    hi team and community,

    i suggest to change the configs of Ext.grid.Column.
    css should be renamed to style (like it is in other components)
    also, the 3 configs:

    cls
    headerCls
    headerStyle

    should be added, since it is not possible to easily change the look of a single column header (changing all is of course no problem).

    inside GridView is the template:
    Code:
            if(!ts.hcell){
                ts.hcell = new Ext.Template(
                    '<td class="x-grid3-hd x-grid3-cell x-grid3-td-{id} {css}" style="{style}"><div {tooltip} {attr} class="x-grid3-hd-inner x-grid3-hd-{id}" unselectable="on" style="{istyle}">', this.grid.enableHdMenu ? '<a class="x-grid3-hd-btn" href="#"></a>' : '',
                    '{value}<img class="x-grid3-sort-icon" src="', Ext.BLANK_IMAGE_URL, '" />',
                    '</div></td>'
                );
            }
    should be no big deal to insert it there.


    thanks and kind regards
    tobiu
    Best regards
    Tobias Uhlig

  2. #2
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    11
      0  

    Default

    Grid Columns are changing significantly in 4.x and will pick up normal Ext.Component configs just like our other components
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  3. #3
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,747
    Vote Rating
    129
      0  

    Default

    glad to hear
    Best regards
    Tobias Uhlig

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    There is a really old feature request for this.

  5. #5
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    11
      0  

    Default

    Wow that really is old. I've asked Aaron (who is developing this feature) to keep an eye on this request
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  6. #6
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    145
      0  

    Default

    In the Ext 4.x branch Ext.Columns are components and therefore get all of the features that all components get. (Like adding additional css classes to the header or setting the style).
    Aaron Conran
    @aconran

Similar Threads

  1. Ext JS charts - missing config options in API
    By hadi78 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 10 Nov 2009, 5:14 AM
  2. [Solved] Ext 1.1: How to set column style (css) in Ext.grid.ColumnModel config?
    By Phenothiasine in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 10 Aug 2007, 9:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •