Hi Guys (and girls),
I have a super interesting bug.
I'm using the AJAX Telerik Report viewer inside an MVC project.
The parameters of the report are actually set programatically.
I have an AJAX.Form that lets the user set some parameters. This will draw a report by overriding the parameters like so:
It never finishes rendering. it just sits there on "Generating report"
The report it is binding using a sql dataSource. I've put a trace on the sql server and i can see it endlessly hitting the stored procedure the datasource uses. (It also endlessly calls [sp_procedure_params_100_managed] passing_in_the_SP_name)
any idea what is going on?
Could it be caused by having a table sitting in the details section (this always makes me feel weird).
Regards,
I have a super interesting bug.
I'm using the AJAX Telerik Report viewer inside an MVC project.
The parameters of the report are actually set programatically.
I have an AJAX.Form that lets the user set some parameters. This will draw a report by overriding the parameters like so:
Protected
Overrides
Sub
OnLoad(
ByVal
e
As
System.EventArgs)
MyBase
.OnLoad(e)
'Bind the report viewer
If
Model.Report
Is
Nothing
Then
Throw
New
Exception(
"Sorry an error has occured. (The report must be intialized before render attempt)"
)
End
If
If
Model.ReportParameters
Is
Nothing
Then
Model.ReportParameters =
New
Telerik.Reporting.ReportParameterCollection()
End
If
For
Each
existingParam
In
Model.ReportParameters
Model.Report.ReportParameters.Add(existingParam)
Next
modularRptViewer.ParametersAreaVisible() =
False
modularRptViewer.Report = Model.Report
End
Sub
It never finishes rendering. it just sits there on "Generating report"
The report it is binding using a sql dataSource. I've put a trace on the sql server and i can see it endlessly hitting the stored procedure the datasource uses. (It also endlessly calls [sp_procedure_params_100_managed] passing_in_the_SP_name)
any idea what is going on?
Could it be caused by having a table sitting in the details section (this always makes me feel weird).
Regards,