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

Destroy event

1 Answer 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matjaz
Top achievements
Rank 1
Matjaz asked on 30 Jun 2014, 08:33 AM
How can I detect destroy event for widget. I would like to clear some things, when a widget is destroyed.
Why I need this? On opening window I created a new window in javascript, place div(window) to DOM (document.body). When main window is destroy, I would like to destroy also secondary window and remove all html.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 02 Jul 2014, 07:06 AM
Hi Matjaz,

I am afraid that Kendo UI widgets do not expose a destroy event. However, they are not destroyed automatically either, except on page unload. That's why you can use the code, in which the main Window is destroyed, or some other relevant event, to destroy the second Window.

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Matjaz
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or