Solved

coloring grouping grid header

Posted on 2014-12-03
2
58 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fix Form size HTML 16 31
Link not working 6 44
Getting selected value using Jquery 3 23
Jquery Ajax - on change event not being picked up 9 39
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

696 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