Solved

coloring grouping grid header

Posted on 2014-12-03
2
50 Views
Last Modified: 2015-03-24
Dear experts

I am using ext-js 4.2
I have a grouping grid like shown in the attached image.
I am trying to color the grouping header row with label  Group:Basketball  with green background.
my grouping grid

For this in my view i am doing

features: [
                                     {
                                      ftype: 'grouping',
                                       groupHeaderTpl: [
                                           '{name} ({[values.children.length]})'
                                       ],
                                       hideGroupedHeader: false,
                                       startCollapsed: false
                                      }
                               ]
                              viewConfig: {
                                    getRowClass: function(record, index) {
                                          //set appropriate css
                                          debugger;
                                          if (record.data.name == 'Abe'){
                                                return 'newLineItemGrp';  
                                          }
                                    }}

And this is my css entry

.newLineItemGrp .x-grid-group-hd {  
    background-color: #D0F5A9;    //green    
}

 But it doesnt seem to work, any idea where i am doing wrong.
Any help will be appreciated.
Thanks
0
Comment
Question by:royjayd
2 Comments
 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 500 total points
ID: 40480511
what is the generated html?
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 40480543
Can you provide a link to your test page?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now