Hello,
We are trying to generate the report viewer report in javascript but are having a difficult time trying to figure out what the javascript logic should be.
When we set the report source on the control tag it works flawlessly.
For example
<telerik:ReportViewer ID="ReportViewer" runat="server" Width="1240" Height="700" ParameterEditors-SingleSelectEditor="createSingleSelectEditor" > <ReportSource Identifier="Reports.Organization_Summary, Reports" IdentifierType="TypeReportSource"> <Parameters> <telerik:Parameter Name="userName" Value="matt" /> </Parameters> </ReportSource> </telerik:ReportViewer>
When we try to set the report source in javascript nothing happens.
Example
<telerik:ReportViewer ID="ReportViewer" runat="server" Width="1240" Height="700" ParameterEditors-SingleSelectEditor="createSingleSelectEditor" />
function displayReport() { var reportViewer = $("ReportViewer").data("telerik_ReportViewer"); reportViewer.reportSource({ report: "Reports.Organization_Summary, Reports", parameters: { "userName": "matt" }, }); reportViewer.refreshReport(); }What are we missing for the report to run when the report source is set on the client?
