[CLOSED] GridPanel.Rows.Changing Background Color of Rows

  1. #1

    [CLOSED] GridPanel.Rows.Changing Background Color of Rows

    Hi!

    I want change the background color of row in my gridPanel...
    But I wish diferent colors depending on the content of first column of row.

    Example:
    If first column contains values between 7:00AM and 12:00AM, I wish that the background color is blue.
    01:00PM to 08:00PM, red
    09:00PM and 12:00PM green

    It´s possible?

    Thanks for any help!
    Last edited by Daniil; Mar 01, 2012 at 5:57 PM. Reason: [CLOSED]
  2. #2
    Hi,

    It's possible, please use the GridView GetRowClass.
    http://docs.sencha.com/ext-js/4-0/#!...od-getRowClass

    Here is some example:
    https://examples2.ext.net/#/GridPane...rking_Records/

    Try to edit some cell - it will become yellow.
  3. #3
    Hi Daniil!!!

    Thanks a lot for your help!

    This example https://examples2.ext.net/#/GridPane...rking_Records/ it´s exactly what I need!

    Thanks again.

Similar Threads

  1. Replies: 7
    Last Post: Jul 11, 2012, 1:12 PM
  2. [CLOSED] Changing the background color of htmleditor
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 18, 2012, 5:41 PM
  3. Changing TreePanel background color
    By wexman in forum 1.x Help
    Replies: 3
    Last Post: Apr 06, 2011, 2:35 PM
  4. [CLOSED] Changing background color of TabPanel on the fly
    By rmelancon in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 07, 2010, 12:23 PM
  5. Replies: 4
    Last Post: Jan 30, 2009, 2:05 AM

Posting Permissions