PDA

View Full Version : Can I format Extj groupHeader



eaglefox12
22 Apr 2013, 5:55 AM
This is my groupFeature


this.myGroupingFeature = Ext.create('Ext.grid.feature.Grouping', { groupHeaderTpl: '{name}' });

What I want is trim the first character. If the "name" is "(This". I just want to show "This" as the group header. Is there a way to do that.

droessner
22 Apr 2013, 8:41 AM
Sure, you can do something like this:



this.myGroupingFeature = Ext.create('Ext.grid.feature.Grouping', {
groupHeaderTpl: '{[values.name.substring(1)]}' }
);

eaglefox12
22 Apr 2013, 9:22 AM
Thank you so much droessner :)


Sure, you can do something like this:



this.myGroupingFeature = Ext.create('Ext.grid.feature.Grouping', {
groupHeaderTpl: '{[values.name.substring(1)]}' }
);