[CLOSED] Conditionally changing color of Text in row of a Grid

  1. #1

    [CLOSED] Conditionally changing color of Text in row of a Grid

    I need to change the color of Text in a row (all columns) in a Grid based on a particular column of that row. I followed the example - http://mvc.ext.net/#/GridPanel_ArrayGrid/Simple/.

    But in the Renderer method, it is passing only the current column value. How can i pass the entire record to the rendered so that I can compare the specific data Index of the record.
    Last edited by Daniil; May 05, 2015 at 3:41 PM. Reason: [CLOSED]
  2. #2
    Hi @barnali,

    A record is passed to Renderer as well:
    http://docs.sencha.com/extjs/5.1/5.1...n-cfg-renderer

Similar Threads

  1. [CLOSED] GridPanel Row Background Color Change Conditionally
    By ebeker in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 14, 2014, 4:45 PM
  2. Changing a row's text-decoration in a grid
    By Juls in forum 1.x Help
    Replies: 1
    Last Post: Nov 12, 2013, 11:48 PM
  3. [CLOSED] Changing the alternate row color for grid
    By RCM in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Dec 03, 2012, 5:25 AM
  4. [CLOSED] Changing Textfield's text color onchange
    By ogokgol in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 22, 2010, 10:58 AM
  5. [CLOSED] Changing Button text color
    By HOWARDJ in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 15, 2009, 10:23 AM

Posting Permissions