Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

coloring grouping grid header

Posted on 2014-12-03
2
Medium Priority
?
80 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 2000 total points
ID: 40480511
what is the generated html?
0
 
LVL 54

Expert Comment

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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…
Suggested Courses

885 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