Aggregate Columns Throwing Error

4 posts, 0 answers
  1. Andrew Diamon
    Andrew Diamon avatar
    5 posts
    Member since:
    Jun 2010

    Posted 29 Aug 2012 Link to this post

    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.
  2. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 30 Aug 2012 Link to this post

    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.

  3. DevCraft banner
  4. Andrew Diamon
    Andrew Diamon avatar
    5 posts
    Member since:
    Jun 2010

    Posted 31 Aug 2012 Link to this post

    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.
  5. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 04 Sep 2012 Link to this post

    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.

Back to Top