This is a migrated thread and some comments may be shown as answers.

Report is throwing jquery error, please advise!

3 Answers 1239 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Venkat
Top achievements
Rank 1
Venkat asked on 15 Dec 2014, 07:29 AM
Hi,

With respect to the this link http://www.telerik.com/forums/report-viewer-is-not-working-on-mvc-need-your-advise!

I had gone through again and found that I had given the entry on root web.config instead of Views\Web.config file. Now this issue is resolved, but we have another issue that we are when ever we are trying to run the report, from jquery we are getting error that:

----
TypeError: jQuery(...).telerik_ReportViewer is not a function<script>
 
                jQuery(function(){
                   

jQuery('#reportViewer1').telerik_ReportViewer({"serviceUrl":"/api/reports/","templateUrl":"/ReportViewer/templates/telerikReportViewerTemplate.html","reportSource":{"report":"~/Views/TransactionSummary/Report1.trdx","parameters":{}},"viewMode":"INTERACTIVE","scaleMode":"SPECIFIC","scale":1,"persistSession":false,"printMode":"AUTO_SELECT","disabledButtonClass":null,"checkedButtonClass":null});
                });
</script>
----

As matter of urgent, can you please give some input's why we are getting this error? Since I was able to fix the problem, I have not raised separate support ticket for this as suggested in above link.

Along with this issue, I have question which I'll add into new thread.

Hope to hear from you soon.

Regards!

3 Answers, 1 is accepted

Sort by
0
Venkat
Top achievements
Rank 1
answered on 16 Dec 2014, 11:17 AM
Hi,

For this issue we found what was the problem. In our solution, earlier we're using the jquery 1.8 and while implemeting telerik reports we used the 1.11 ver. For some reason the jquery 1.8 file was loading along with the 1.11 ver, so it was throwing error. After removing the jquery 1.8 ver from solution. After that this issue is gone now.

Regards!
0
Accepted
Hinata
Top achievements
Rank 1
answered on 16 Dec 2014, 04:21 PM
Hi Venkat,

I had a similar issue and it turned out I was using different versions of jQuery at the same time just like you.
In the end I cleaned the project and added the viewer using the new VS item template: http://www.telerik.com/help/reporting/html5-report-viewer-quick-start.html
0
Venkat
Top achievements
Rank 1
answered on 17 Dec 2014, 04:40 AM
Hi Hardik,

Yesterday, we're able to fix this by removing the older versions of JQuery files and then it able to get this error to go off!!!

Regards!

Tags
General Discussions
Asked by
Venkat
Top achievements
Rank 1
Answers by
Venkat
Top achievements
Rank 1
Hinata
Top achievements
Rank 1
Share this question
or