An error '$.throttle is not a function' is thrown in Angular report viewer with enabled continuous scrolling
On attempt to display reports in Print Preview in Angular applications, an error is thrown if continuous scrolling is enabled.
Possible workaround: Disable continuous scrolling by setting the pageMode option to 'SINGLE_PAGE'.
3 comments
ADMIN
Mads
Posted on:03 Feb 2021 15:29
Hi,
This issue has been reported to appear again, and this item has been reopened.
When the ReportViewer is initialized, a plugin uses the JQuery namespace to attach two method, throttle and debounce. It seems like in some cases JQuery is initialized multiple times and the two methods are no longer available in the JQuery namespace, resulting in this error.
A potential workaround is to move these two methods into their own namespace and update the references. In the current version of AngularViewer, the telerikReportViewer.js file inside the dependency folder can be modified to do this by changing the following lines:
[16]: var $ = window.Cowboy || (window.Cowboy = {}), jq_throttle;
This uses the namespace 'Cowboy', suggested as a backup in the plugin, instead of Jquery's.
Regards,
Mads
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
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
Tony
Posted on:13 Feb 2019 23:31
I am also seeing this issue. I have uploaded the error.