PDA

View Full Version : groupHeaderTpl in Ext 4.2.2



EPV
4 Dec 2013, 5:57 AM
In the docs you can read ...

http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.grid.feature.Grouping-cfg-groupHeaderTpl

... that "name"is an alias for "renderedGroupValue" which contains the value "as produced by the column renderer".

Though in 4.2.2 date isn't formated in the groupHeaderTpl as in the datecolumn. It prints a full dateobject. It worked in 4.13.

Temporary fix:




groupHeaderTpl: [
'{columnName}: {name:this.formatName}',
{
formatName:function(name) {
if(Ext.isDate(name)) {
return Ext.Date.format(name, "Y-m-d");
}else {
return name;
}
}
}
]

Kevin Jackson
6 Dec 2013, 8:27 AM
Thanks for the input, I'll see if there are plans to address that