#stat_total not showing for custom price column

I am using the following function to customize column type price

function eXcell_myprice(cell) {
this.base = eXcell_price;
this.base(cell);
this.setValue = function(val) {

   if (val >= 0){
       this.cell.style.color = "green";
   }else{
       this.cell.style.color = "red";
   }
   this.cell.innerHTML = this.grid._aplNF(val, this.cell._cellIndex);

}
}
eXcell_myprice.prototype = new eXcell_price;

Inside the grid init function I’m writing
mygrid2.setNumberFormat("$0,000.0K", 6,".",",");
mygrid2.init();


mygrid2.groupBy(0,["#title","","","","","","#stat_total"]);

But stat_total shows up as " $0.0K "
What should I do for it to sum up the numbers properly? Pls help