1. #1
    Ext User
    Join Date
    May 2010
    Posts
    10
    Vote Rating
    0
    sivaengn is on a distinguished road

      0  

    Default Grid Cell colored, but after sorting, cell color not moved,only value is moving

    Grid Cell colored, but after sorting, cell color not moved,only value is moving


    Hi
    I have colored the cell depends on value, using custom render function
    In the custom callback function
    data.attrs="style='background-color:"red"';
    Lets say
    col1 col2 col3
    row1 green red data
    row2 green green data1

    But when i sort, Data is sorted properly but the corresponding color is not moving with the data
    col1 col2 col3
    row1 green red data1
    row2 green green data

    How we can fix this...otherwise i have to disable the sorting....
    Thanks
    Siva

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    It should work. You must be doing something you're not telling us about.

    The renderers affect the cell they are rendering.

    http://www.sencha.com/deploy/dev/exa...rray-grid.html

  3. #3
    Ext User
    Join Date
    May 2010
    Posts
    10
    Vote Rating
    0
    sivaengn is on a distinguished road

      0  

    Default


    In the grid, i am using plugins like Ext.ux.grid.RowExpander, Ext.ux.grid.ColumnHeaderGroup..not sure whether these are causing the problems..i will debug..i will let you know..

Similar Threads

  1. Changing the color of a cell in a grid
    By MmarcoM in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 1 Sep 2009, 6:06 AM
  2. Change a single cell color in a grid
    By deblasio in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 16 Jan 2009, 9:21 AM
  3. background color in one of the cell in the grid
    By bhaskar1605 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 13 Oct 2008, 2:53 AM
  4. Problem with cell background color in grid
    By ratamaster in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 25 Jul 2008, 11:50 PM
  5. Grid Cell-Inner Text Color
    By thomson in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 15 Jul 2008, 5:00 PM

Thread Participants: 1

Tags for this Thread