4 Answers, 1 is accepted
0
Hi skrec,
Ross
the Telerik team
If you know the type of your business object, which I am sure you do, you can do something like this by using LINQ and the Enumerable extension methods:
var sumOfSalaries = this.RadGridView.SelectedItems.OfType<FootballPlayer>().Sum(player => player.Salary);
I hope this helps.
Ross
the Telerik team
0
skrec
Top achievements
Rank 1
answered on 29 Mar 2011, 01:29 PM
Thaks for answer.
But I thought, if the telerik GridView has build-in abillity to Sum only selected GridView rows (I know how apply Sum function on all displayed rows.
Thanks. Petr
But I thought, if the telerik GridView has build-in abillity to Sum only selected GridView rows (I know how apply Sum function on all displayed rows.
Thanks. Petr
0
Naimish
Top achievements
Rank 1
answered on 05 Feb 2015, 03:52 PM
Hello,
I have this little question.
it is possible to get GridView aggregate function value store in singal variable .?
I have this little question.
it is possible to get GridView aggregate function value store in singal variable .?
0
Hello Petr,
I am not sure how to understand your question. Would you please clarify it a bit?
Regards,
Dimitrina
Telerik
I am not sure how to understand your question. Would you please clarify it a bit?
Regards,
Dimitrina
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.