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

Binding Timing

1 Answer 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael Million
Top achievements
Rank 1
Michael Million asked on 09 Jul 2010, 09:55 PM
Hi,

For give me this this has been answered already in this forum.  I tried to find it.

Here's the scenario:
In a Windows Form applicainn, I have a report that contains several sub-reports .  Each sub report binds against business objects that refer to a global singleton object to get their necessary query/look up parameters, like date range.

Currently, the container report handles the .._ItemDataBinding event and sets the global business objects.  Each sub-report handles the .._ItemDataBinding where the business objects are updated and then bould to report.

Well, my data seems to binding late.  It works if i press the preview button twice.

So, it seems like the report has already rendered when the ItemDataBinding event is called.  Does that make sense?

I don't get it.

Is there a better event I could utilize?

Thanks,
Michael

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 13 Jul 2010, 07:21 AM
Hi Michael Million,

You should use the NeedDataSource event, which as the name suggests is meant exactly for this purpose. For more info please refer to Using the NeedDataSource event to connect data help article. Please notice that we use the processing item to set the DataSource and not the definition one - this is probably the reason why your reports bind after refreshing.

Regards,
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
Michael Million
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or