report viewer - Use Javascript selector instead of JQuery selector

2 posts, 0 answers
  1. Bharat
    Bharat avatar
    10 posts
    Member since:
    Feb 2019

    Posted 03 Apr 2019 Link to this post

    In the html5 report viewer, we are using a jquery selector


    But what if we want to use vanila javascript selector for it like,


    but when I am using this it is showing me an error: Uncaught TypeError: reportViewer1.telerik_ReportViewer is not a function


  2. Silviya
    Silviya avatar
    417 posts

    Posted 05 Apr 2019 Link to this post

    Hello Bharat,

    The HTML5 Report Viewer is a pure HTML5/JavaScript/CSS3 jQuery-based widget and in its implementation uses jQuery objects. For example, telerik_ReportViewer, telerik_ReportViewer_SendEmail, telerik_ReportViewer_PagesArea, telerik_ReportViewer_DocumentMapArea, telerik_ReportViewer_ParametersArea etc.

    You could write your custom vanilla JavaScript logic in telerikReportViewer-<VERSION>.js for the viewer in order to use the document.getElementById selector.

    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top