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

What is the firing order of events?

1 Answer 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Cognitronic
Top achievements
Rank 2
Cognitronic asked on 26 Sep 2010, 08:27 PM
Hello,

I have a report with multiple datasources in which I'm trying to get certain values from each datasource and display/run calculations on in the footer of the report.  I'm using the ItemDataBound event of different textboxes to calculate totals and assign them to a variable in the codebehind.  The problem is I don't understand the firing order of the different ItemDataBound events.  If I have two tables and 5 textboxes in the report footer section....which textbox's ItemDataBound is fired first?  Is there a way to control the order?

Thanks!!!

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 27 Sep 2010, 10:15 AM
Hello Cognitronic,

The order of the events depends only on the order of the item collection of the report footer. You can see the order of the items in the InitializeComponent method, e.g.

            //
            // reportFooterSection1
            //
            this.reportFooterSection1.Height = new Telerik.Reporting.Drawing.Unit(3, Telerik.Reporting.Drawing.UnitType.Cm);
            this.reportFooterSection1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.textBox1,
            this.textBox2});
            this.reportFooterSection1.Name = "reportFooterSection1";

Sincerely yours,
Steve
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
Cognitronic
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or