extjs - Calculate the grid column value with total value in extjs4.1 -
i have grid 2 columns: target , target percentage. getting target value store. need calculate total , target percentage value using jan/total jan*100. want summary target %. can tell me how this?
i need calculate total manually
e.g
month target target % jan 50 **50/100*100** mon 50 50/100*100 total 100
thanks
probably want in model.
{ name : 'target %', convert : function( value, record ) { var target = (record.get('target')/total)*100; return target; } type: 'number' },
Comments
Post a Comment