Completed
Last Updated: 18 May 2022 14:33 by ADMIN
Release R2 2022
Support
Created on: 01 Feb 2022 12:14
Type: Bug Report
1
When disposing the Report Viewer component also remove resize window events
When disposing Report Viewer Angular component remove the resize event handlers attached to the window from reporting an kendoSplitter
6 comments
ADMIN
Neli
Posted on: 18 May 2022 14:33

Hi,

Thank you for reporting these issues to us. I created a new bug report - Remove event after being disposed and remove the kendoSplitter resize event.

As a token of gratitude, I updated your Telerik points.

Regards,
Neli
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Support
Posted on: 12 May 2022 08:53

Also if possible remove the kendoSplitter resize event

Support
Posted on: 12 May 2022 08:48

Hi Neli,

Saw the update today, seems that only one event is being removed when disposing, there are 3 more, can these 3 also be removed when disposing?

 

 

ADMIN
Neli
Posted on: 17 Feb 2022 12:10

Hello,

Thank you for the additional details.

I discussed the case with one of our developers and we will consider the current behavior as a bug. I changed its status to "Unplanned" which means that the request is approved.

Regards,
Neli
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Support
Posted on: 10 Feb 2022 16:11

Hi Neli,

We have a single page application and the user can create multiple report viewers and dispose them during his session, the events created by report viewer will keep to stack up because they are never removed.

Our current fix is to add a namespace to all resize events and then remove them, for example we changed this:

 

and when we dispose the report viewer we do this:

 

var reportViewer = $("#reportViewer").data("telerik_ReportViewer");
if(!!reportViewer)
reportViewer.dispose();

$(window).off("resize.TelerikReportViewer1");
$(window).off("resize.TelerikReportViewer2");
$(window).off("resize.TelerikReportViewer3");
$(window).off("resize.TelerikReportViewer4");

$.each($._data(window, 'events'), function(i, eventType) {
eventType.filter(function(e, a) {
return e.namespace.startsWith("kendoSplitter");
}).forEach(function(e) {
$(window).off(e.type + "." + e.namespace);
});
});

 

 

 

ADMIN
Neli
Posted on: 08 Feb 2022 12:10

Hi,

Can you please provide more details on the desired functionality? Maybe you can send us a video or screenshots? 

Note that the Angular Report Viewer is a wrapper of the pure Html5 Report Viewer that is an HTML5/JavaScript/CSS3 jQuery-based widget. It is not a native Angular component and requires jQuery.

We have a feature request for a native Angular Report Viewer component - Angular ReportViewer - remove dependency for jQuery and KendoUI for jQuery. You may vote for it in order to increase its priority.

Regards,
Neli
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.