
Originally Posted by
franklt69
mystix I download the zip and changed summaryRenderer and now with 0 record the count don't appear, this is ok but yet in the column summaryType: 'sum' appear $NaN.00,
that $NaN.00 issue is caused by the built-in Ext.util.Format.usMoney() method, which always assumes valid numbers are passed in.
use this override to fix that issue
Code:
Ext.util.Format.usMoney = function(v) { // override Ext.util.usMoney
v = Ext.num(v, 0); // ensure v is a valid numeric value, otherwise use 0 as a base (fixes $NaN.00 appearing in summaryRow when no records exist)
v = (Math.round((v - 0) * 100)) / 100;
v = (v == Math.floor(v)) ? v + ".00" : ((v * 10 == Math.floor(v * 10)) ? v + "0" : v);
v = String(v);
var ps = v.split('.');
var whole = ps[0];
var sub = ps[1] ? '.'+ ps[1] : '.00';
var r = /(\d+)(\d{3})/;
while (r.test(whole)) {
whole = whole.replace(r, '$1' + ',' + '$2');
}
v = whole + sub;
if (v.charAt(0) == '-') {
return '-$' + v.substr(1);
}
return "$" + v;
}

Originally Posted by
franklt69
should be hide like other
this is easily achieved via a custom summaryRenderer (like the one i used to display the total no. of companies).

Originally Posted by
franklt69
a little detail is when you have several column in the grid with the summary if the grid have horizontal scroll you can watching a column for instance email column and in the summary appear $700.00 so maybe will be good to set in the summary something like Total: $700.00 a field label, what do you thing?
this is also easily achieved via a custom summaryRenderer. i've updated the example above with an example for the "Change" column.
thanks for the feedback 
[edit]
fixed minor problem with toggleSummary