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

Aggregate Columns Throwing Error

3 Answers 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew Diamon
Top achievements
Rank 1
Andrew Diamon asked on 29 Aug 2012, 08:38 PM
If I have a grid with the ItemsSource bound to a RadDomainDataSource Dataview, then add a Aggregate column like:

<telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:LastFunction></telerik:LastFunction>
                    </telerik:GridViewDataColumn.AggregateFunctions>

I immedaitely get the error:

Method not found: 'System.Delegate System.Reflection.MethodInfo.CreateDelegate(System.Type, System.Object)'.

I am using the latest version: 2012.2.725.1050.  This started happening after installing SP1.

3 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 30 Aug 2012, 02:25 PM
Hi Andrew,

I've tested the case you describe and everything works fine on my end. Could you check the attached test solution and let me know if I have missed something?
 
Kind regards,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Andrew Diamon
Top achievements
Rank 1
answered on 31 Aug 2012, 01:24 PM
The sample you provided does NOT work in the designer.  I have had to move all my aggregates from the designer to code-behind, where they work.  This is a clean install.  Has to be a bug in your controls.  Everything else works fine.  Again, the error does not happen if the ItemSource tag/databinding is removed.
0
Yordanka
Telerik team
answered on 04 Sep 2012, 01:43 PM
Hi Andrew,

Excuse me for the misunderstanding.

As to design error - it is expected in this case because there is no data which can be calculated and shown. The data will be loaded once you start the application. 
However, you said that this problem starts showing after upgrading to Q2 2012 SP1 version. Could you point the version when this exception doesn't occur? We will try to find why there is difference between the two versions. Thank you advance.

All the best,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Andrew Diamon
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Andrew Diamon
Top achievements
Rank 1
Share this question
or