Binding Via Stored Procs/DataSets...

2 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 18 Jan 2010 Link to this post


    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?

  2. Steve
    Steve avatar
    10941 posts

    Posted 19 Jan 2010 Link to this post

    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.

    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.
Back to Top