1. #1
    Ext User
    Join Date
    Mar 2008
    Posts
    22
    Vote Rating
    0
    swarna is on a distinguished road

      0  

    Smile Changing color of a row in a grid

    Changing color of a row in a grid


    Hi,

    I need to change the color of a selected row in a grid on click of a button in the row. Again on the next click of the button the color should change back to old color when it was rendered. Any suggesstion or help regarding the same would be helpful. Please reply as soon as possible.

  2. #2
    Ext User
    Join Date
    Oct 2008
    Location
    Atlanta ,GA
    Posts
    239
    Vote Rating
    0
    kolli is on a distinguished road

      0  

    Default


    one way is to maintain a model data variable for each row and you can use setrowStyle in gridViewconfig to color the complete row, based on that model data variable

  3. #3
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    1
    Arno.Nyhm is on a distinguished road

      0  

    Default


    can you explain more the use case of this?

    did you mean with the click of the button also the selection should change?
    This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

    GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041

Thread Participants: 2