I am working on a Demo to give to client for approval of using telerik report in MVC4 web site. I am facing an issue in passing parameter and refresh report.
Requirement as per client in all reports that on page load report will be loading with default values for filter and after that user can select any values in any filter criteria and click on button in that case report needs to be updated on the basis of filter criteria. Currently i am using Reportviwer with html helper Please help me your earliest i have to give this Demo to client on Thursday evening.
@{
var typeReportSource = new TypeReportSource() { TypeName = "ClientTrackingReport" };
typeReportSource.Parameters.Add("X", Model.X);
typeReportSource.Parameters.Add("Y", Model.Y);
typeReportSource.Parameters.Add("Z", Model.Z);
typeReportSource.Parameters.Add("A", Model.A);
typeReportSource.Parameters.Add("Datefrom", Model.From);
typeReportSource.Parameters.Add("DateTo", Model.To);
}
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl("/api/reports/")
.TemplateUrl("../ReportViewer/templates/telerikReportViewerTemplate.html")
.ReportSource(typeReportSource)
.ViewMode(ViewModes.INTERACTIVE)
.ScaleMode(ScaleModes.SPECIFIC)
.Scale(1.0)
.PersistSession(true)
)
Requirement as per client in all reports that on page load report will be loading with default values for filter and after that user can select any values in any filter criteria and click on button in that case report needs to be updated on the basis of filter criteria. Currently i am using Reportviwer with html helper Please help me your earliest i have to give this Demo to client on Thursday evening.
@{
var typeReportSource = new TypeReportSource() { TypeName = "ClientTrackingReport" };
typeReportSource.Parameters.Add("X", Model.X);
typeReportSource.Parameters.Add("Y", Model.Y);
typeReportSource.Parameters.Add("Z", Model.Z);
typeReportSource.Parameters.Add("A", Model.A);
typeReportSource.Parameters.Add("Datefrom", Model.From);
typeReportSource.Parameters.Add("DateTo", Model.To);
}
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl("/api/reports/")
.TemplateUrl("../ReportViewer/templates/telerikReportViewerTemplate.html")
.ReportSource(typeReportSource)
.ViewMode(ViewModes.INTERACTIVE)
.ScaleMode(ScaleModes.SPECIFIC)
.Scale(1.0)
.PersistSession(true)
)