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

Using an aggregate function to update a report header field

1 Answer 137 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 07 Apr 2011, 08:15 PM
I have created an aggregate function by following this article: http://www.telerik.com/support/kb/reporting/designing-reports/implementing-and-using-custom-aggregate-functions.aspx

I terminate this function during the reportFooter DataBound event and at that time use the returned value to determine what should be displayed in a textbox field on the reportHeader.  However, the updated value for the field is not being displayed.  I know my set for the textbox.Value is going through, and the result is as intended if I do an export of the report to a PDF.

I am sure that this has something to do with when the report header item is rendered vs. when the report footer data bound event takes place...  but it sounded like I would be able to use the aggregate functionality as I am attempting.  Are there any changes I need to make, or should I approach this from an entirely different angle?

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 12 Apr 2011, 04:16 PM
Hello Christopher,

Recently we have made improvements to the data engine that includes the custom aggregates implementation and the referenced help article is out of date and was scheduled for update. We have already updated the KB thus our suggestion is to follow the guidlines in the updated Implementing custom aggregate functions KB article. Additionally you may find useful the Custom/User Aggregate Functions help article.

Kind regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Christopher
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or