How To Change GridPanel Header Column Size and Colour

  1. #1

    How To Change GridPanel Header Column Size and Colour


    Hi All,

    How To Change GridPanel Header Column Size and Color.

    ( Ex: if i have an grid panel in that i have two header columns i.e Employee Name, Employee No. So what i want is I want to increse the Size And color of Employee Name, Employee No. ).

    I can try these.but it will not work

    <U> In Style Sheet:

    
    </U>
    
    
    .GridfontsizeAndColorinBlack
    
    
    {
    
    
    font-size:12px;
    
    
    font-weight:bold ;
    
    
    color:Gray;
    
    
    }
    <U>
    In Design Page:

    </U>
    
    
    
    <ext:Column DataIndex="EmployeeName" Header="Employee Name" Width="350" Sortable="true" Css="GridfontsizeAndColorinBlack" />
    So the Header column (Employee Name ) size and colors are not changed.


    So, Plz help me as early as possible

    Thanks in Advance


  2. #2

    RE: How To Change GridPanel Header Column Size and Colour

    hi,denish, I think you can enter a return key in the header to change the height of the column header, such as : <ext:Column Header="AAA<br />BB" Width="70"></ext:Column> ,wish it will help you.
  3. #3

    RE: How To Change GridPanel Header Column Size and Colour

    Please try like this...

    
    
    <style type="text/css">
          .x-grid3-td-EmployeeName {color: red; height:50px;}
    </style>
    
    // and the grid column should like 
    
    <ext:Column ColumnID="EmployeeName" DataIndex="EmployeeName"  .....  />

    Regrads,

    BOBS

Similar Threads

  1. Replies: 4
    Last Post: Jul 25, 2011, 4:57 PM
  2. GridPanel header width and font size
    By norphos in forum 1.x Help
    Replies: 0
    Last Post: Jun 08, 2011, 3:24 AM
  3. Change grid column header in ajaxevent?
    By Tbaseflug in forum 1.x Help
    Replies: 3
    Last Post: Feb 03, 2011, 11:16 AM
  4. [CLOSED] [1.] GRIDPANEL: Change column size cause error
    By PoloTheMonk in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 01, 2010, 9:57 AM
  5. Replies: 1
    Last Post: Nov 24, 2009, 11:31 AM

Posting Permissions