-
22 Aug 2012 9:52 AM #1
Unanswered: How to add style to Ext.grid.feature.Grouping?
Unanswered: How to add style to Ext.grid.feature.Grouping?
hi,i am using a dark layout and added grouping to my result grid. The header section of group not applying same style (access), it is white. Can I add some style to it? By CSS entry, or some property - not found any of this.features:
tried to play with this Style, does not solve, as another white box left around grid-title.Code:[Ext.create('Ext.grid.feature.Grouping',{ groupHeaderTpl: 'Related Project: {project.name} '})]
thank youCode:/*.x-grid-cell-inner, */ .x-grid-group-title { /* padding: 0px; border: 0px; margin: 0px;*/ font-weight: bold; /* font-size: 22px; */ background-color: #496085; color: #FFFFFF; }
Last edited by zlevardy; 22 Aug 2012 at 10:57 AM. Reason: added style item, formatting code parts
-
22 Aug 2012 11:11 AM #2
this is the generated HTML:
inner-cell stuff not to change due to other format of grid will be damaged,Code:<tr id="gridview-1233-hd-[object Object]" class="x-grid-group-hd"> <td class="x-grid-cell" style="padding-left:0px;" colspan="8"> <div class="x-grid-cell-inner"> <div class="x-grid-group-title"> Project: </div> </div> </td> </tr>
and the non working style:
I dont want any complicated (for example alternating background color per groups, ... etc.) Just some get rid of that white background of inner and cell without crashing other parts of grid rendering.Code:/*.x-grid-cell-inner, */ .x-grid-group-hd,.x-grid-group-title { /* padding: 0px; border: 0px; margin: 0px;*/ font-weight: bold; /* font-size: 22px; */ background-color: #496085; color: #FFFFFF; }
thx
-
23 Aug 2012 11:00 AM #3
solution found, this fixes the CSS issue while using Access Style:
.x-grid-group-title {
text-decoration: underline;
background-color: #232D38;
color: #FFFFFF;
}
.x-grid-group-hd {
background-color: #232D38;
}
.x-grid-group-hd .x-grid-cell-inner {
background-color: #232D38;
}
-
24 Aug 2012 9:53 AM #4Sencha - Support Team
- Join Date
- Jul 2010
- Location
- Houston, Tx
- Posts
- 7,183
- Vote Rating
- 194
- Answers
- 433
Thank you for the update.
Scott.


Reply With Quote