0

I have the grid with two columns: Target and Target Percentage. I am getting Target value from store. I need to calculate Total and Target percentage value using Jan/Total Jan*100. I want a summary for target %. Can anybody tell me how to do this?

I need to calculate the total manually

E.g

Month  Target      Target %
   Jan     50       **50/100*100**
   Mon     50       50/100*100
   Total   100        

Thanks

4

1 回答 1

0

可能您希望在模型中使用它。

{
    name : 'Target %',
    convert : function( value, record ) {
                   var target = (record.get('Target')/total)*100;
                   return target;
    }   
    type: 'number'
},
于 2013-05-22T10:20:07.827 回答