Hii Guys!!
I displayed data in jqgrid and enabled ‘ footerrow: true’ in jqgrid Now as per my need i want to show the sum of particular column on footer Row…Plz guys Help me as I am using Jqgrid For first time …
Thanks in advance….
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to sum the values which are in the jqGrid, you can do that in JavaScript (preferably in
gridCompleteevent):If you need to calculate the sum on the server side, then you must enable
userDataOnFooteroption first:And then include the sum in your server response. For exmple in case of JSON it should look like this:
You can also take a look at live example available on jqGrid Demos page (you should choose “New in Version 3.5” and then “Summary Footer Row”).