1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    74
    Vote Rating
    2
    url is on a distinguished road

      0  

    Default Unanswered: How to use Themes

    Unanswered: How to use Themes


    Hi,

    How can i set different colors for even and odd rows of grid using themes in extjs4.

    Any Help?

  2. #2
    Sencha User
    Join Date
    Aug 2012
    Posts
    33
    Vote Rating
    0
    Answers
    2
    alane is on a distinguished road

      0  

    Default


    Assuming you don't want to just switch on the stripeRows boolean on Ext.Grid.Views, check out the Theming guide. Thet talk about changing global variables in sass about halfway down the page.

    (The variables you're looking for are in _grid.scss: $grid-row-cell-background and $grid-row-cell-alt-background.)

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    74
    Vote Rating
    2
    url is on a distinguished road

      0  

    Default $grid-row-cell-alt-background is not working for grouping grid

    $grid-row-cell-alt-background is not working for grouping grid


    @Alane

    Thanks for your response.
    I've tried with $grid-row-cell-alt-background but it's not working for grouping grid. And my requirement is i've a container with items as one more container, grouping grid and normal grid panel. The container color should be cyan, sub container color should be gray, grid's even row color should be red and odd row color should be green. It should be applicable to all grids and arid headers and grouped headers. How can i achieve this?

    Any help would be really very appreciated.




Thread Participants: 1