Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2013
    Posts
    7
    Vote Rating
    0
    florin_p is on a distinguished road

      0  

    Default Answered: How can I change the css style of a column in Live Grid depending of column values ?

    Answered: How can I change the css style of a column in Live Grid depending of column values ?


    Hello,

    I have an LiveGrid with some columns. I need to change the style to all cells in a column depending of the values in the cells.

    I can change the css style to be identical to all cell in the column like this
    Code:
    actionColumn.setColumnTextClassName(resource.css().colStyle());
    );

    I need to change the style according to the value inside.

    How can I do that ?

    Thank you.

  2. What I think you want to do is in the guide and basic grid example.

    Guide showing how to render custom cells.
    http://docs.sencha.com/gxt-guides/3/...ustomCell.html

    This basic grid changes the cell style depending on the source. Check out the source and find setCell.
    http://www.sencha.com/examples/#ExamplePlace:basicgrid

    Brandon
    http://docs.sencha.com/gxt-guides/3/ - guides

  3. #2
    Sencha - GXT Dev Team
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    419
    Answers
    7
    Vote Rating
    15
    branflake2267 will become famous soon enough

      0  

    Default


    What I think you want to do is in the guide and basic grid example.

    Guide showing how to render custom cells.
    http://docs.sencha.com/gxt-guides/3/...ustomCell.html

    This basic grid changes the cell style depending on the source. Check out the source and find setCell.
    http://www.sencha.com/examples/#ExamplePlace:basicgrid

    Brandon
    http://docs.sencha.com/gxt-guides/3/ - guides

  4. #3
    Sencha Premium Member
    Join Date
    Apr 2013
    Posts
    7
    Vote Rating
    0
    florin_p is on a distinguished road

      0  

    Default


    Thank you for the answer.

Thread Participants: 1

Tags for this Thread