Report is throwing jquery error, please advise!

4 posts, 1 answers
  1. Venkat
    Venkat  avatar
    37 posts
    Member since:
    Aug 2014

    Posted 15 Dec 2014 Link to this post

    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!
  2. Venkat
    Venkat  avatar
    37 posts
    Member since:
    Aug 2014

    Posted 16 Dec 2014 Link to this post

    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!
  3. Answer
    Hinata
    Hinata avatar
    146 posts
    Member since:
    Dec 2013

    Posted 16 Dec 2014 in reply to Venkat Link to this post

    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
  4. Venkat
    Venkat  avatar
    37 posts
    Member since:
    Aug 2014

    Posted 16 Dec 2014 in reply to Hinata Link to this post

    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!

Back to Top