Hi,
I am using version 7.2.14.127 with the Html5 control
Everything seems to be working fine, but for some reason the POST of the parameter values keeps showing up like this:
Object { undefined="7/1/2014 12:00:00 AM"}
The date chosen is correct, but undefined should say "BeginDate" as established in the report.
Any idea what could be causing this? I have not edited the javascript files at all.
I am using parameters generated by the ReportViewer code.
Thanks,
Garrett
I am using version 7.2.14.127 with the Html5 control
Everything seems to be working fine, but for some reason the POST of the parameter values keeps showing up like this:
Object { undefined="7/1/2014 12:00:00 AM"}
The date chosen is correct, but undefined should say "BeginDate" as established in the report.
Any idea what could be causing this? I have not edited the javascript files at all.
I am using parameters generated by the ReportViewer code.
Thanks,
Garrett
5 Answers, 1 is accepted
0
Hello Garrett,
Please check if the name of the parameter is typed correctly and is the same as in the report definition. For more details check the How To: Pass values to report parameters help article. Then check if by any chance Newtosoft.Json.dll is installed in the GAC, and if yes, remove it from there and update the project reference via Nuget.
I hope this helps you.
Regards,
Stef
Telerik
Please check if the name of the parameter is typed correctly and is the same as in the report definition. For more details check the How To: Pass values to report parameters help article. Then check if by any chance Newtosoft.Json.dll is installed in the GAC, and if yes, remove it from there and update the project reference via Nuget.
I hope this helps you.
Regards,
Stef
Telerik
New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.
0

Garrett
Top achievements
Rank 1
answered on 10 Feb 2014, 03:56 PM
Hi Stef,
This works for custom parameters, but not for the ones generated by the ReportViewer from the .cs report file.
I've included the code. The parameter is generated automatically and works just fine, but it passes "undefined" as the parameter name rather than "BeginDate"
This works for custom parameters, but not for the ones generated by the ReportViewer from the .cs report file.
I've included the code. The parameter is generated automatically and works just fine, but it passes "undefined" as the parameter name rather than "BeginDate"
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
>
<
title
>Telerik HTML5 Report Viewer</
title
>
<
meta
http-equiv
=
"X-UA-Compatible"
content
=
"IE=edge"
/>
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1, maximum-scale=1"
/>
<
link
href
=
"http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css"
rel
=
"stylesheet"
/>
<
script
src
=
"http://code.jquery.com/jquery-1.9.1.min.js"
></
script
>
<
link
href
=
"/Content/kendo/2013.3.1324/kendo.common.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"/Content/kendo/2013.3.1324/kendo.blueopal.min.css"
rel
=
"stylesheet"
/>
<
script
src
=
"/Scripts/kendo/2013.3.1324/kendo.all.min.js"
></
script
>
<
link
href
=
"/ReportViewer/styles/ReportViewer-7.2.14.127.css"
rel
=
"stylesheet"
/>
<
script
src
=
"/ReportViewer/js/ReportViewer-7.2.14.127.js"
></
script
>
<
style
>
#reportViewer1 {
position: absolute;
left: 5px;
right: 5px;
top: 5px;
bottom: 5px;
font-family: 'segoe ui', 'ms sans serif';
overflow: hidden;
}
</
style
>
</
head
>
<
body
>
<
div
id
=
"reportViewer1"
class
=
"k-widget"
>
loading...
</
div
>
<
script
type
=
"text/javascript"
>
$("#reportViewer1")
.telerik_ReportViewer({
serviceUrl: "/api/reports/",
templateUrl: '/ReportViewer/templates/telerikReportViewerTemplate.html',
reportSource: {
report: "Reports.Objects.Admissions.KPI.KPI, Reports.Objects"
}
});
</
script
>
</
body
>
</
html
>
0

Martin
Top achievements
Rank 1
answered on 11 Feb 2014, 10:29 AM
0
Hello everyone,
Please check the Newtomsoft.Json.dll version and from where it is referenced. If you find it installed in the GAC, remove it from there. Finally, upgrade the assembly with the latest available official Nuget package update. Without proper reference to Newtosoft.Json.dll the report may be loaded intially, but consecutive updated from the Parameters area will fail.
Regards,
Stef
Telerik
Please check the Newtomsoft.Json.dll version and from where it is referenced. If you find it installed in the GAC, remove it from there. Finally, upgrade the assembly with the latest available official Nuget package update. Without proper reference to Newtosoft.Json.dll the report may be loaded intially, but consecutive updated from the Parameters area will fail.
Regards,
Stef
Telerik
New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.
0

Garrett
Top achievements
Rank 1
answered on 13 Feb 2014, 07:50 PM
Looks like Stef is right - make sure you are using the most recent version of Newtonsoft.Json.
I ended up having to edit the registry so I could permit gacutil to remove Newtonsoft.Json 4.5 (apparently Team Explorer installed it to the GAC for TFS 2010). After that, a reinstall of Newtonsoft.Json on the project to 6.0.1 fixed the parameter issues.
I ended up having to edit the registry so I could permit gacutil to remove Newtonsoft.Json 4.5 (apparently Team Explorer installed it to the GAC for TFS 2010). After that, a reinstall of Newtonsoft.Json on the project to 6.0.1 fixed the parameter issues.