When I create a report viewer, I pass in the parameters, but the report still uses the default parameters. Also when I expand a group to show details it resets back to the default parameters. I am using customer parameters.
$(function () {
$("#reportViewer1")
.telerik_ReportViewer({
serviceUrl: "/api/TelerikReports/",
templateUrl: '/Content/Telerik/Report/telerikReportViewerTemplate.html',
reportSource: {
report: "SomeReportType",
parameters: {
StartDate: $('#StartDate').data("kendoDatePicker").value(),
EndDate: $('#EndDate').data("kendoDatePicker").value(),
DC: $('#Dcs').data("kendoComboBox").value()
}
}
});
})
function ShowReport() {
var viewer = $("#reportViewer1").data("telerik_ReportViewer");
viewer.reportSource({
report: viewer.reportSource().report,
parameters: {
StartDate: $('#StartDate').data("kendoDatePicker").value(),
EndDate: $('#EndDate').data("kendoDatePicker").value(),
DC: $('#Dcs').data("kendoComboBox").value()
}
});
viewer.refreshReport();
}
$(function () {
$("#reportViewer1")
.telerik_ReportViewer({
serviceUrl: "/api/TelerikReports/",
templateUrl: '/Content/Telerik/Report/telerikReportViewerTemplate.html',
reportSource: {
report: "SomeReportType",
parameters: {
StartDate: $('#StartDate').data("kendoDatePicker").value(),
EndDate: $('#EndDate').data("kendoDatePicker").value(),
DC: $('#Dcs').data("kendoComboBox").value()
}
}
});
})
function ShowReport() {
var viewer = $("#reportViewer1").data("telerik_ReportViewer");
viewer.reportSource({
report: viewer.reportSource().report,
parameters: {
StartDate: $('#StartDate').data("kendoDatePicker").value(),
EndDate: $('#EndDate').data("kendoDatePicker").value(),
DC: $('#Dcs').data("kendoComboBox").value()
}
});
viewer.refreshReport();
}