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

Binding Via Stored Procs/DataSets...

1 Answer 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 18 Jan 2010, 10:49 PM
Hello,

I'm looking at the C# examples that came with the download.  Do I have to bind in initializecomponent?  I have a report with 4 params, and the data source is dependent on these parameters.  So what I am wondering is, from what I'm seeing on these examples, is why do I have to bind my dataset generated from a table adapter in the constructor when I don't know what the data will be until the user fills in params.

I'm just getting into telerik reporting, so forgive my newbieness :-)

EDIT: after looking at it, it does not appear the needdatasource event is firing after parameters have been specified and I click the preview button.  I'm not sure why that is, do you have to do something for that to happen?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Jan 2010, 07:45 AM
Hi Brian,

Take a look at the following links for more info on binding Telerik Report to a stored procedure:


As described in the Adding a Data Source through NeedDataSource report event help article, the event is fired only if the report has no data source set.

Also note that the DataSource should be set to the Processing report object and not to the Definition object (i.e. this.DataSource). More info on Processing and Definition items is available in Understanding Events article.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or