This is a migrated thread and some comments may be shown as answers.

Find sum in RadGrid

2 Answers 189 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mareena
Top achievements
Rank 1
mareena asked on 27 Nov 2014, 04:54 AM
How to find the sum of columns of a radgrid and show it on the footer






2 Answers, 1 is accepted

Sort by
0
mareena
Top achievements
Rank 1
answered on 27 Nov 2014, 05:04 AM
I'va a table like this.

Product name           Price
-------------------           -------
Car                             5.5
Bus                            10.5
Motor Cycle               1.5
                               ------------
            Total Price= ??


And now i want to find the total of the Price...How?? Somebody Please help..
0
Radoslav
Telerik team
answered on 01 Dec 2014, 06:52 AM
Hello,

To achieve the desired functionality you can try using the column aggregates and grid footer item:
1. Set the RadGrid .ShowFooter to true
2. On Price column set Aggregate="Sum"

Live demo of this functionality you ca find here:
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/grouping/group-footers/defaultcs.aspx

I hope this helps.

Regards,
Radoslav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
mareena
Top achievements
Rank 1
Answers by
mareena
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or