I am using jqGrid and displaying my data in grid I have 5 columns. I want to calculate SUM of each column and display the sum at the end of the column , probably in the footer.
Community
- 1
- 1

prakash2089
- 498
- 4
- 16
-
jQuery("#gridId").jqGrid('footerData', 'set', { Date: 'Total:', Amount: sumOfPrice }); In the above line , cant we make the colName (Ex: Date and AMmount ) to be dynamic, like taking these from an array ?? – Pavy Apr 25 '14 at 04:21
-
1I used gridComplete instead of loadComplete.. referred from other stackoverflow link – Pavy Apr 25 '14 at 04:23