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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -