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

Custom Aggregate Function on Dynamic Columns

1 Answer 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 17 Feb 2014, 08:41 PM
Hello,

I am creating my own custom aggregate function to calculate the sum of the cells in my column based on a property of my row. I have created my own function class. I am inheiriting from AggregateFunction with element/result:  < Row, double>. I am passing in the rows of my grid. I am trying to make this as generic as possible, but I cannot seem to get a hold of the column sender. My columns are created dynamically. So my logic is happening for every column this function is being set up on. 

Thanks,

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 20 Feb 2014, 05:33 PM
Hello Doug,

You can see this online example, which shows how to create a custom aggregate function. The demo is for Silverlight, however the same approach works in WPF.

Regards,
Hristo
Telerik
Tags
GridView
Asked by
Doug
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or