Is there an example of how to use the Html5 reportviewer with a objectdatasource
How do I attached the model to the reportsource?
public
class
DashboardController : Controller
{
public
ActionResult Index()
{
var model = data.GetReportData()
return
View(model);
}
}
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl("/api/reports/")
.TemplateUrl("/ReportViewer/templates/telerikReportViewerTemplate.htmll")
.ReportSource(new TypeReportSource{TypeName="MyReportLibrary, Dashboard"})
.ViewMode(ViewModes.INTERACTIVE)
.ScaleMode(ScaleModes.SPECIFIC)
.Scale(1.0)
.PersistSession(true)
)
How do I attached the model to the reportsource?