Hi,
By setting the DataSource in my server-side Report constructor, I am able to retrieve the report in my Silverlight viewer.
In order to pass in parameters, I understand that I am supposed to set the DataSource to null in the constructor and override OnNeedDataSource.
When I do this and set the DataSource in OnNeedDataSource, the report displays within the Silverlight client with no data at all.
public OperatingIndicators() // CTOR
{
InitializeComponent();
DataSource = null;
}
protected override void OnNeedDataSource(object sender, EventArgs e)
{
this.DataSource = GoGetMyData();
}
Using the debugger, I see that OnNeedDataSource is called and I can see that the parameters are passed in successfully and the DataSource is correctly loaded with data.
I am using Telerik.Reporting.Service.ReportService, version 3.2.9.1211 on the server.
and Telerik.ReportViewer.Silverlight version 3.2.9.1211 on the client.
By setting the DataSource in my server-side Report constructor, I am able to retrieve the report in my Silverlight viewer.
In order to pass in parameters, I understand that I am supposed to set the DataSource to null in the constructor and override OnNeedDataSource.
When I do this and set the DataSource in OnNeedDataSource, the report displays within the Silverlight client with no data at all.
public OperatingIndicators() // CTOR
{
InitializeComponent();
DataSource = null;
}
protected override void OnNeedDataSource(object sender, EventArgs e)
{
this.DataSource = GoGetMyData();
}
Using the debugger, I see that OnNeedDataSource is called and I can see that the parameters are passed in successfully and the DataSource is correctly loaded with data.
I am using Telerik.Reporting.Service.ReportService, version 3.2.9.1211 on the server.
and Telerik.ReportViewer.Silverlight version 3.2.9.1211 on the client.