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

Changing Textbox Value in ItemDataBound property not affecting in Aggregation function (like SUM)

1 Answer 168 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mitan
Top achievements
Rank 1
Mitan asked on 26 Feb 2014, 01:19 PM
Hi All,

I am changing Textbox.Value property on ItemDataBound evnet of Textbox 
for example TextBox.Value is 1000 but i want to change in some case to 55
but the sum function at GroupFooter is considering 1000 and not 55

is this possible ?? or its a wrong way???

Please HELP.....

Thanks in Advance.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 03 Mar 2014, 10:26 AM
Hello Mitan,

The total at the end most probably calculates an aggregate over w field value. Thus changing the TextBox item's Value, that represents the running value of the field would not be reflected by the underlying data and in the final calculation.

The recommended approach to change the TextBox.Value is via expression based on the built-in or custom functions. Events are not recommended due to the dependance of the order of rendering the elements - Report Events.

About the total, you can create a custom aggregate function or use a calculated field that via expression returns the desired value.

I hope this information helps you.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

Tags
General Discussions
Asked by
Mitan
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or