mohan
mohan

Reputation: 13165

How to sum grid column in extjs4.1

I have the grid like below. Can anybody tell me how to sum all the grid columns and display them in the grid row

e.g

      Month   Achieve Target 

      Jan     3000     4000
      Feb     2000     5000

   **Total    5000     9000**   need to add total row in grid

Thanks

Upvotes: 0

Views: 6632

Answers (2)

Malu
Malu

Reputation: 1

you can programatically calculate de sum, max, min, avg of a store column like this:

store.sum('yourColumn');

Upvotes: 0

Hines Bourne
Hines Bourne

Reputation: 609

Post some of your code if you need more assistance.

Upvotes: 5

Related Questions