How to pass data to report

2 posts, 0 answers
  1. Ashley Slaughter
    Ashley Slaughter avatar
    5 posts
    Member since:
    Oct 2009

    Posted 07 Dec 2009 Link to this post

    I have a Silverlight application that shows employee data (last name, first name, etc).  The data is contained in List<Employee>.  I need to set the DataSource of the report to this list.  How do I do it?
  2. Ryan Overton
    Ryan Overton avatar
    12 posts
    Member since:
    Oct 2009

    Posted 08 Dec 2009 Link to this post

    Ashley,

    The only place you can assign a data source for the report is through the "NeedDataSource" event of the report.

    private

     

    void report1_NeedDataSource(object sender, EventArgs e)

     

     

     

     

        Telerik.Reporting.Processing.Chart procChart = (Telerik.Reporting.Processing.Chart)sender;     

        //TODO: Set the charts Data Source  

     

        procChart.DataSource = employeeList;
    }

    Hope this helps,
    Ryan

  3. DevCraft banner
Back to Top