Dear Telerik Team member,
I am using Telerik report viewer with entity fraework.
This is the code I am using to bind the report to the control.
When I run the app. I am unable to see the result on the reportviewer, but I am able to get the result set from database.
Where am I doing wrong?
Help me please...
Telerik.Reporting.EntityDataSource entityDataSource = new
Telerik.Reporting.EntityDataSource(); <
BR
>
entityDataSource.ObjectContext =
typeof(MyEntities);<
BR
>
entityDataSource.ObjectContextMember =
"ReportSales";<
BR
>
entityDataSource.Parameters.AddRange(new
Telerik.Reporting.ObjectDataSourceParameter[]
{<
BR
> new
Telerik.Reporting.ObjectDataSourceParameter("SalesID",
typeof(System.Nullable<
int
>),18),<
BR
>
new Telerik.Reporting.ObjectDataSourceParameter("category",
typeof(System.Nullable<
byte
>),
1)});<
BR
>
<
BR
>
Telerik.Reporting.Report report = new
Telerik.Reporting.Report();<
BR
>
report.DataSource =
entityDataSource;<
BR
>
<
BR
>
this.DefaultReportViewer.Report = report;