Results 1 to 1 of 1

Thread: Css color problem at row class

  1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    177

    Question Css color problem at row class

    Hello,

    I have a grid with
    Code:
    viewConfig: {
                getRowClass: function(record, index) {
                    var style = 'grid';
                    if( record.json.state == 'N' ){
                        style = 'gridError';
                    }
                    if( index % 2 == 0 ){
                        style += 'Even';
                    }
                    else{
                        style += 'Odd';
                    }
                    return style;
                }
            }
    and css:
    Code:
    .gridEven{
        background-color: #E9E9E9;
        color:     #990000;
    }
    .gridErrorOdd{
        background-color: #F5d2d2;
        color:     #990000;
    }
    The problem is background-color applied but the color did not. (As at the image)
    How can I apply the color?
    Attached Images Attached Images
    --
    Mehmet ad?rc?

Similar Threads

  1. problem about keeping my css class in the panel
    By qualifier in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 6 Oct 2008, 4:23 AM
  2. Change row's text color (not background-color) in grid
    By khnle in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 5 Feb 2008, 6:47 AM
  3. Problem in creating custom css class for toolbar and menu
    By vishnupriya in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 25 Jan 2008, 2:32 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
  •