Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Setting the bg color of an entire row or cell in the grid

  1. #11

    Default

    Code:
    grid.view.renderRow = function(...){ ... }; 
    
    grid.render();
    works fine for this purpose but for paged grid paging toolbar vanishes.

    how can we overcome the problem with paging toolbar?

  2. #12

    Default

    sorry for distrubing .....

    searching the documentation I found YAHOO.ext.grid.PagedGridView for this purpose.

    thanks.

  3. #13
    Ext User
    Join Date
    Mar 2010
    Location
    Houston, TX
    Posts
    3

    Default

    I've been searching on how to change the background and text color of a grid's cell and found this site. I'm brand new to cfgrid and Ext. My grid is working; I just need the part on how to change the background and text color.

    I'd like to use a CSS like this:
    <style type="text/css">
    .red{background-color:#FF0000!important; color:#FFFFFF;}
    .green{background-color:#00FF00!important; color:#FFFFFF;}
    .yellow{background-color:#FFFF00!important; color:#000000;}
    </style>

    The link above referencing the example code gives a "NOT FOUND" error. Can you provide a complete example of the final solution? It will save me tons of hours and aggravation trying to figure out how to set the color for a cell; the contents of the cell is actually the color (i.e. red, green, yellow, null/no color). Thanks.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. setting ids on grid rows...
    By sean in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 29 Mar 2007, 7:14 AM
  2. grid bug: mouseout of the first row keeps hover color
    By simeon in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 12 Mar 2007, 8:14 PM
  3. how does the grid fill the entire panel area?
    By vupt in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 5 Mar 2007, 9:24 AM
  4. Flip font color in the grid (for a link)
    By albansg in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 29 Nov 2006, 6:12 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
  •