Here is my controller which I am using a instance report
public ActionResult Index()
{
//===============================================================================
var objDts = new ObjectDataSource();
objDts.DataSource = new Sample();
objDts.DataMember = "GetSample";
var orgSampleReport = new OrganisationSample();
orgSampleReport.DataSource = objDts;
var reportSource = new Telerik.Reporting.InstanceReportSource();
reportSource.ReportDocument = orgSampleReport;
return View(reportSource);
//===============================================================================
}
and here is the logic that I am puling from
[DataObject]
public class Sample
{
public int Id { get; set; }
public string Name { get; set; }
public Sample GetSample()
{
var sample = new Sample
{
Id = 1,
Name = "Sample 1"
};
return sample;
}
}
whenever I run the program and go to the report viewers it shows "No Report"